SA-MP Forums Archive
Random - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Random (/showthread.php?tid=238110)



Random - Sepelin - 11.03.2011

Could someone tell me why this doesn't work

PHP код:
CheckNumber[i] = 1000+random(9999); 
sometime it give's me a number above 9999.


Re: Random - Serbish - 11.03.2011

pawn Код:
CheckNumber[i] = random(9999);



Re: Random - Sepelin - 11.03.2011

Quote:
Originally Posted by Serbish
Посмотреть сообщение
pawn Код:
CheckNumber[i] = random(9999);
I want the minimum number to be 1000 and maximum number 9999


Re: Random - admantis - 11.03.2011

Dude, I hope you did go to school. Do you even know how to plus?
pawn Код:
CheckNumber[i] = 1000+random(8999);
1000+8999 = 9999, if you didn't know.


Re: Random - Sepelin - 11.03.2011

Removed