SA-MP Forums Archive
random from 10 - 20 - 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 from 10 - 20 (/showthread.php?tid=82596)



random from 10 - 20 - macmorten - 19.06.2009

just a fast question...

how do i make pawn choose a random number between 10 and 20 for example.


Re: random from 10 - 20 - Vince - 19.06.2009

pawn Код:
new rand = 10+random(11);