From: Cedric Foll Date: 2003-07-30T11:24:14+09:00 Subject: Re: Generating random numbers? 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). > > Thanks in advance, > > Harry O. > > oban:~# irb irb(main):001:0> rand(10) => 8 You have the rand method. rand(n) return a number in [1..n-1].