From: Ben Giddings Date: 2003-07-29T06:27:31+09:00 Subject: Re: Generating random numbers? On Mon July 28 2003 5:19 pm, Harry Ohlsen wrote: > Can someone remind me of the name for the class/method for generating random > numbers? I did a quick grep through the library and a google, but all I > found was a project that plans to improve the random number generator(s). Kernel::rand irb(main):012:0> rand => 0.1986612797 irb(main):013:0> rand(5) => 4 Use the first for a floating point random between 0 and 1, the second for an integer rand between 0 and the number. http://www.rubycentral.com/book/ref_m_kernel.html#Kernel.rand Ben