MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getRandomNumber

Function getRandomNumber

Radom-password-genrator/main.js:57–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 return String.fromCharCode(Math.floor(Math.random() * 26) + 65);
56}
57function getRandomNumber() {
58 return String.fromCharCode(Math.floor(secureMathRandom() * 10) + 48);
59}
60function getRandomSymbol() {
61 const symbols = '~!@#$%^&*()_+{}":?><;.,';
62 return symbols[Math.floor(Math.random() * symbols.length)];

Callers

nothing calls this directly

Calls 1

secureMathRandomFunction · 0.85

Tested by

no test coverage detected