03.07.2011, 19:54
Very simple to generate a random "phone" number:
Example:
pawn Код:
stock GenerateRandomNumber(string[], const length = 8)
{
for(new i; i < length; ++i)
{
string[i] = random(10) + '0';
}
return ;
}
pawn Код:
new
string[12]
;
GenerateRandomNumber(string);
print(string);