From: Zundra Daniel Date: 2008-04-17T13:20:38+09:00 Subject: Re: noob random number question ------=_Part_2100_12010624.1208406027707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline number / rand(101).to_f On Thu, Apr 17, 2008 at 12:12 AM, Zoe Phoenix wrote: > If I wanted a program to return a random percentage of a number, like, > 3% to 5% of 237, how would I do this? I know rand(101) would return a > random number between 0 and 100, but I'm not sure how to have a random > percentage of a number returned. Help, please? > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_2100_12010624.1208406027707--