GenerateString decl String pool abcdefghijklmnopqrst uvwxyz0123456789

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
GenerateString()
{
decl String:pool[] = "abcdefghijklmnopqrstuvwxyz0123456789";
decl String:cvar[] = "";
for(new i=1; i<=25; i++)
{
new randomInt = GetRandomInt(0, 37);
StrCat(cvar, sizeof(cvar), pool[randomInt]);
}
PrintToServer("DEBUG: %s", cvar);
return cvar;
}