How to make random strings? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to make random strings?

I will make a programm with random strings.

13th Mar 2017, 6:10 AM
nwytg
2 Answers
+ 2
?
13th Mar 2017, 2:19 PM
nwytg
+ 1
Create array of chars, then use random to choose random chars from this array by generating random indexes, in the end concatenate chars to string.
13th Mar 2017, 6:29 AM
Tony Loa
Tony  Loa - avatar