Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
I used to remember how to do it (I think...=/). But it slipped my mind on how to generate a random number using a Global Variable. If you know how please respond, thanks,
Ruby has a random number generating method built in: rand(#)
It will produce a number rangong from 0 up to, but not including #. EX: rand(5) #0, 1, 2, 3, 4