Question about 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: Question about random .. (
/showthread.php?tid=138845)
Question about random .. -
Ben147 - 03.04.2010
how the random command work
if i have a new cash variable and i want to get random number from 350-500 example
how the command work
new cash =
Re: Question about random .. -
Norck - 03.04.2010
Here:
Код:
new cash = 350+random(151);
Min amount can be 350 and max can be 500
Re: Question about random .. -
Ben147 - 03.04.2010
if i want from 400 - 755
im write?
Код:
cash=400+random(356);
Re: Question about random .. -
Norck - 03.04.2010
Yes, you are.