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
Our educational partners
Free education resources to use in the classroom
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
I want to generate a random number between 2 values,example:- between 1 and 60
But the number should not be a float number and I want that probability of selection of all numbers is exactly equal
This will return a random integer number between 1 and 60:
Note, that the second number is 61, not 60. Also, don't use round() expression with random, as it will produce uneven results.
Don't forget permutation tables in the Advanced Random plug.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the reply ❤️