DEV Community

loading...

Discussion on: Fastest Way to Generate Random Strings in JavaScript

Collapse
diegomgar profile image
Dieg Oto

Do you like base20 for something special?

Collapse
oyetoket profile image
Oyetoke Toby Author

No reason actually, I just like using it.

Collapse
austindd profile image
Austin

Just to clarify for people who don't know, the radix argument for toString goes from 2 to 36, and you need to use 36 to include all alphanumeric characters in the alphabet. Using 20 will omit more than half of the alphabetic letters from the output.