Ruby comes with a random number generator. The method to get a randomly chosen number is rand. If you call rand, you'll get a float greater than or equal to. perfect- random - number -generator The best random number generator ever created eliberatimoldova.eu is the Ruby community's gem hosting service. I am very new to Ruby and have been learning using a tutorial at I have come to a point where i need to generate a random number within a.