Random function. - 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)
+--- Thread: Random function. (
/showthread.php?tid=314505)
Random function. -
Ricop522 - 30.01.2012
I want a random function that does a random in 25 to 80.
I think this function exists, but I dont find them.
If anyone can help me, I'll rep+;
Re: Random function. -
iggy1 - 30.01.2012
Second page of usefull functions thread by boylett.
pawn Код:
rand(minnum = cellmin,maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
rand(25, 80);