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?
Returns exactly 5 random characters, as opposed to some of the top rated answers found here.
Math.random().toString(36).substr(2, 5);