View Single Post
Old 05-14-2011, 12:42 PM   PM User | #2
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
Hi,

Firstly a random username is bad users wont remeber it

Secondly the forum rules say no students asking us to work for them and this seems a little like homework so i will give you a run though how to do it then you can google the exact how to's

username = empty string
chars = array of charators
Make a loop for how meany chars in length you want the username
inside loop set random to a random number using the lenght of chars -1 as the max and 0 as the low then then add the char by using the random number as the key for your chars array

return the username string
__________________
Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)
barkermn01 is offline   Reply With Quote
Users who have thanked barkermn01 for this post:
Leos (05-14-2011)