HELP [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: HELP [RANDOM] (
/showthread.php?tid=149039)
HELP [RANDOM] -
eixas10 - 20.05.2010
I want to random
rok = 1
rok = 2
rok = 3
rok = 4
On Payday
Re: HELP [RANDOM] -
Nero_3D - 20.05.2010
(random(4) + 1) would give you a number from 1 till 4
Re: HELP [RANDOM] -
Naxix - 20.05.2010
Quote:
|
Originally Posted by ♣ Joker ♠
(random(4) + 1) would give you a number from 1 till 4
|
Wouldn't that give a number from 1 till 5?
Re: HELP [RANDOM] -
Nero_3D - 20.05.2010
Quote:
|
Originally Posted by Naxix
Quote:
|
Originally Posted by ♣ Joker ♠
(random(4) + 1) would give you a number from 1 till 4
|
Wouldn't that give a number from 1 till 5?
|
no random(4) returns 0, 1, 2 or 3 and plus one it would be 1, 2, 3 and 4