I use Math.random()
right now, it returns some number like 0.7183306051883847
.
There're some bad sides of this function:
0.
at the beginningno option to set a symbols length of the number
no option to add letters to the string
I wonder, what is the shortest code to generate strings like (expected characters length - 6 for example)?
2en81u
39438s
ldksfn
Thanks.