27.10.2012, 10:42
You can set random numbers to a string (because a 32-bit cell has limitations in it's capacity to hold a very large number)
pawn Код:
stock SetRandomNumber(string[], size = sizeof string)
{
for(new i; i < size; i++) string[i] = 48 + random(10);
return string;
}
//Usage:
public OnFilterScriptInit()
{
new MyString[16]; //<-- array size is the number of digits
SetRandomNumber(MyString);
printf("%s", MyString);
return 1;
}