From: Andrew Wagner Date: 2010-08-17T22:35:12+09:00 Subject: Re: can i do this in ruby? a simulation process --001517478f8e9c110b048e050493 Content-Type: text/plain; charset=UTF-8 Ah. Yes, I didn't mean to say that I used rand without any parameters. I used the fact that, for example, to get a random number from 0 to 5, inclusive, you can call rand(6). On Tue, Aug 17, 2010 at 9:29 AM, Brian Candler wrote: > Bruce Wayner wrote: > > i would like to know if you used rand() in departure time/traveling > > time.. > > Yes. rand() by itself gives a random number between 0.0 and 1.0 (well > actually 0.99999999...). Hence, rand*30.0 gives you a value between 0 > and 30. > -- > Posted via http://www.ruby-forum.com/. > > --001517478f8e9c110b048e050493--