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/.