HELP [RANDOM]
#1

I want to random

rok = 1
rok = 2
rok = 3
rok = 4

On Payday


Reply
#2

(random(4) + 1) would give you a number from 1 till 4
Reply
#3

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?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)