Generate random String | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Generate random String

Hi Community, how can I generate a string with 9 characters/letters in the following order lowercase, numbers, uppercase? E.g. abc123ABC. I have a method that generates everything randomly and it needs to be a random string but with this kind of setting. I appreciate all help I've been stuck at this for a while. Regards

10th May 2018, 9:44 AM
Vas
Vas - avatar
4 Answers
+ 8
10th May 2018, 1:01 PM
D_Stark
D_Stark - avatar
+ 6
Thank you for best answer and your very welcome 😊👍
10th May 2018, 1:10 PM
D_Stark
D_Stark - avatar
+ 1
that's exactly it I was trying something like that with a different algorithm and I was getting out of bounds exceptions. Thanks 4 the help 👨🏾‍💻👍
10th May 2018, 1:06 PM
Vas
Vas - avatar
0
What do u mean
10th May 2018, 9:50 AM
Ankit Yadav
Ankit Yadav - avatar