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
Game development stories & opinions
I know how to generate a random number but it's not doing what I want.
I want it to generate a whole number between 1 and 4.
But when I write in (random(4)) the number 0 comes up too, and I don't want that.
random(4) is a number between 0 and 3
it doesn't make sense exactly, but now you know
and any other case to generate a number between something just add a number to it
a number between 10 and 20 would be random(11)+10
Develop games in your browser. Powerful, performant & highly capable.
Thanks, it works nicely.
You could also just script it with python.