do you ever want to randomize somthing but then it generates an infinitely long string of numbers? ( well i have come up with a solution ,
one that makes infinitely long string
one that makes a clean 1 10
Develop games in your browser. Powerful, performant & highly capable.
The result of the random expression is a float number.
random(a, b): Generate a random float between a and b, including a but not including b. Use floor(random(a,b)) to generate just the whole numbers 0, 1, 2, 3.
Use int(random(1,10)) to convert to an integer value.
Additional information:
Repeat X times makes only sense with integer values, because you can't repeat something only a fraction of times. That's why it's converted during the call.