Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
 = 10
 = 24
 = 32
 = 12
 = 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]
Develop games in your browser. Powerful, performant & highly capable.
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)?