I want a 5 character string composed of characters picked randomly from the set [a-zA-Z0-9].
[a-zA-Z0-9]
What\'s the best way to do this with JavaScript?
To meet requirement [a-zA-Z0-9] and length=5 use
btoa(Math.random()).substr(10, 5);
Lowercase letters, uppercase letters, and numbers will occur.