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

Function getRandomSymbol

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

Source from the content-addressed store, hash-verified

58 return String.fromCharCode(Math.floor(secureMathRandom() * 10) + 48);
59}
60function getRandomSymbol() {
61 const symbols = '~!@#$%^&*()_+{}":?><;.,';
62 return symbols[Math.floor(Math.random() * symbols.length)];
63}
64
65// Selecting all the DOM Elements that are necessary -->
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected