DEV Community

loading...

Discussion on: Fastest Way to Generate Random Strings in JavaScript

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.