From: Fan Jin Date: 2010-12-27T10:58:55+09:00 Subject: Re: What method to define a random float Jeremy Bopp wrote in post #970763 > > The subject of your message says that you want a random float rather > than a random integer. If you want a random float between 0 and 5, do > the following: > > @num = rand * 5 Thanks a lot. It works fine now :) -- Posted via http://www.ruby-forum.com/.