A free tool for creating oldschool FPS games · By CG8516 (Clark)
How to generate random numbers to use with variables?
Resolved.
variable=RANDOM(1,6)
Assigns "variable" a random number between 1 and 6 included.
Yes, but be advised: variable=RANDOM(1,6) will actually generate a random number between 1 and 5, not between 1 and 6! I know this is confusing, but it's because of the way that most random number generators work.
Because it's starts from zero if to be specific.