Social Security(Random)
#1

Hey me yet again xD!

I'm trying to make social secruity system you can say, it would be created by random 9 digits, how would i do this?

I looked at gfs phone system and saw
pawn Код:
new randphone = 100000 + random(899999);
    PlayerInfo[playerid][pPnumber] = randphone;
So im guessing its something similar to this.
Reply
#2

Use random ex,

so

randomEx(min,max);
Reply
#3

pawn Код:
Variable = RandomEx(100000000, 999999999);

stock RandomEx(min, max) //By Alex "******" Cole
{
    return random(max-min)+min;
}
Untested.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)