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 have an issue with random() in that the results returned are the same on every run of the game.
So any items using random will reproduce the exact same numbers everytime the browser is refreshed, hence the gameplay isnt random.
Is there a random seed or some other way to produce more random numbers.
Develop games in your browser. Powerful, performant & highly capable.
Random is random, so you're probably just doing something wrong in terms of using the results.
If you create a simple event to change the text of a text box every second to random(100) or whatever, does it work?
I use random in my own apps and I can assure you it's quite random.
Remember, Random returns a FLOAT value, so Random(100) could be 1, 1.323423, 1.233, 3, 99.39324324, etc.
I just tested with a Text object, and button. On button click set text to int(random(100)) and it get a random first number every refresh.
I think thats the problem in this case. Other tests do show it to be working as expected.
Thanks to all.