Cool. Thanks.
Or you could even do this if variable1 starts as 3 or 6.
variable1 = 9-variable1
Is it possible to pick random value from an Array?
[0] = 10
[1] = 24
[2] = 32
[3] = 12
[4] = 8
how to do I put it?
I tried: Array.At(random(1-3)) it didn't work..
ps. want to random range [1-3]
random(1,3)=
round(random(1,3))=
Develop games in your browser. Powerful, performant & highly capable.
floor(random(0,2))
Set a random number into 0 and 1.
"floor(random(b-a+1)) + a"
This gives the most equal chances to return an integer number from "a" to "b" (including them).
What if I want to set x to floor(random(1,8)) EXCLUDING the current x (1 <= x <= 8)?