+ 2

How can I make a random letter sequence maker?

3rd Oct 2017, 7:14 AM
B.D
B.D - avatar
4 Answers
+ 15
Here is an example in C++ [https://code.sololearn.com/ciN0lkfmCRhS]
3rd Oct 2017, 7:39 AM
Babak
Babak - avatar
+ 2
Like a password generator?
3rd Oct 2017, 7:15 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
So you could take a string like "abcdefghijklmnopqrstuvwxyz", then create a Random Object and call it's function nextInt(INHERECOMESTHESTRINGLENGTH); Then use theString.charAt (RANDOMNUMBER) to get random chars.
3rd Oct 2017, 7:23 AM
Jonas Schröter
Jonas Schröter - avatar
0
Without symbols
3rd Oct 2017, 7:20 AM
B.D
B.D - avatar