Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Use:
- // RandomString(maxlen,lowercasebool)
- RandomString(len,bool:lowercase)
- {
- new
- string[26] //maxchars ...
- ;
- for(new i = 0; i < len; i++)
- {
- string[i] = lowercase? tolower(random(25)+65) : (random(25)+65);
- }
- return string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement