vendredi 20 janvier 2017

Generate random string with capital letters and numbers without O and 0

I'm wanting to generate a random string with a length of 12 with capital letters only and numbers with no letter O or the number 0 in javascript. here is what I have:

Math.random().toString(36).substr(2, 12)

but the problem is that it is not all capital and i don't want the letter O or the number 0. thanks




Aucun commentaire:

Enregistrer un commentaire