View Single Post
Old 05-14-2011, 12:47 PM   PM User | #3
bullant
Banned

 
Join Date: Feb 2011
Posts: 2,699
Thanks: 13
Thanked 395 Times in 395 Posts
bullant is on a distinguished road
1) put all the letters and characters for the username in a string

2) generate a random number between 6-10

3) then generate a random number between 0 and the length-1 of the string in 1)

4) get the character (using charAt()) in the string in 1) at the index of the random number in 3)

5) repeat steps 3-4 for the number of times of the random number in 2), appending the new character to the previous ones.

Last edited by bullant; 05-14-2011 at 12:51 PM..
bullant is offline   Reply With Quote
Users who have thanked bullant for this post:
Leos (05-14-2011)