From: Brian Candler Date: 2010-08-17T22:29:34+09:00 Subject: Re: can i do this in ruby? a simulation process 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/.