13.07.2010, 14:09
I made a code for you, this fills up a string with random letters:
EXAMPLE OF USAGE:
pawn Код:
stock randomletters(string[], maxlen = sizeof(string))
{
new i;
while(i < maxlen)
{
if(random(2))
{
//upper
string[i] = random(26) + 65;
}
else
{
//lower
string[i] = random(26) + 97;
}
i++;
}
return 1;
}
pawn Код:
new string[20];
randomletters(string);
print(string);