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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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.