Skip to content

Instantly share code, notes, and snippets.

@HasanHuseyinDemir
Last active September 9, 2023 20:36
Show Gist options
  • Save HasanHuseyinDemir/7affbe5499da9f0a35b800ac26c6ec03 to your computer and use it in GitHub Desktop.
Save HasanHuseyinDemir/7affbe5499da9f0a35b800ac26c6ec03 to your computer and use it in GitHub Desktop.
Random Key Generator
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