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?
One liner:
Array(15).fill(null).map(() => Math.random().toString(36).substr(2)).join('') // Outputs: 0h61cbpw96y83qtnunwme5lxk1i70a6o5r5lckfcyh1dl9fffydcfxffffd69ada9tu9jvqdx864xj1ul3wtfztmh2oz2vs3mv6ej0fe58ho1cftkjcuyl2lfkmxlwua83ibotxqc4guyuvrvtf60naob26t6swzpil