From: Rimantas Liubertas Date: 2007-01-07T03:48:28+09:00 Subject: Re: HOW-TO produce random numbers within a range? <...> > I have learnt that rand(100) produces random numbers from 0 to 99 but i > need to know how to set a minimum for the random number. > > Your help would be greatly appreciated. <...> Add the minimum :) def range_rand(min,max) min + rand(max-min) end -- Regards, Rimantas -- http://rimantas.com/