DEV Community

Discussion on: Fastest Way to Generate Random Strings in JavaScript

Collapse
 
oyetoket profile image
Oyetoke Toby

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.