Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Hi, I'm wondering how you would set a value to a random number. For example Setting the speed of something from 300 to 400?
Develop games in your browser. Powerful, performant & highly capable.
The function is
Random(Highest number you want returned)
So if you want a number between 0 and 100 it would be
To do between two numbers you would do
This would return a random value between 300 and 400.