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?
How about something like this: Date.now().toString(36) Not very random, but short and quite unique every time you call it.
Date.now().toString(36)