Last active
September 9, 2023 20:36
-
-
Save HasanHuseyinDemir/7affbe5499da9f0a35b800ac26c6ec03 to your computer and use it in GitHub Desktop.
Random Key Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RandomKeyGenerator=()=>{ | |
let arr=""; | |
const chars="abcdefghijklmnoprstuxvyz_".split(""); | |
for(var i=0;i<=9;i++){ | |
arr=arr+chars[Math.floor(Math.random() * (24))] | |
} | |
return arr; | |
} | |
//Outputs: | |
//rzpdupkpmz | |
//nbhufecgxu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment