I want to program a text so, when it is clicked, it displays a random number from 1 to 5, but I don't know how to. Someone please help me!
Develop games in your browser. Powerful, performant & highly capable.
Something like...
Mouse > On Text Clicked > Set Text to str( round( random(1,5) ) )
Should do just fine.
PrinceCooshie101
You can look in the tuts, there is alot of useful tips on using arrays.
here is one not sure if its exactly what your looking for.
scirra.com/tutorials/315/generating-random-numbers-without-duplicates