How to make it random
#5

There is, it's 2,147,483,647 which is the maximum 32-bit integer in PAWN (signed).

If you want an 11 length number:

pawn Код:
new rand1 = random(500000 - 100000) + 100000;
new rand2 = random(50000 - 10000) + 10000;

new string[64];
format(string, sizeof(string), "%d%d", rand1, rand2);
Reply


Messages In This Thread
How to make it random - by JaKe Elite - 27.10.2012, 09:59
Re: How to make it random - by park4bmx - 27.10.2012, 10:04
Re: How to make it random - by JaKe Elite - 27.10.2012, 10:06
Re: How to make it random - by park4bmx - 27.10.2012, 10:08
Re: How to make it random - by Emmet_ - 27.10.2012, 10:09
Re: How to make it random - by JaKe Elite - 27.10.2012, 10:11
Re: How to make it random - by iPLEOMAX - 27.10.2012, 10:42
Re: How to make it random - by _Khaled_ - 27.10.2012, 12:22
Re: How to make it random - by iPLEOMAX - 27.10.2012, 13:36
Re: How to make it random - by JaKe Elite - 28.10.2012, 00:24

Forum Jump:


Users browsing this thread: 3 Guest(s)