Random help.. - 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 help.. (
/showthread.php?tid=182455)
Random help.. -
The_Moddler - 10.10.2010
How can I make a random value between 500 and 1000?
I tryed
Random(500-1000); but it seems to not be working..
Thanks
Re: Random help.. -
JaTochNietDan - 10.10.2010
The random function in Pawn doesn't allow for picking in between two numbers, although you should be able to do this.
pawn Код:
new random = random(500) + 500;
That should always generate a number between 500 and 1000.