From: Andrew Wagner Date: 2010-08-17T22:27:32+09:00 Subject: Re: can i do this in ruby? a simulation process --0016e6d975ba306418048e04e961 Content-Type: text/plain; charset=UTF-8 > > 5-35sec (rand?) -> departure time for vehicles from A to B + > 50sec - 1min & 10sec ( 70sec? im a ryt? rand?) -> traveling time from A > -> B > > and then > > 50sec - 1min & 10sec ( 70sec? im a ryt? rand?) -> traveling time from B > -> A > 5-35sec (rand?) -> departure time for vehicles from B -> A > > i would like to know if you used rand() in departure time/traveling > time.. > I used rand() for both departure time and traveling time, assuming all the times were equally likely. You bring up an interesting point about going from B -> A. In my simulation, I only considered vehicles going in one direction. Seems like the specification is unclear about whether they are leaving every 5-35 seconds from both cities or just one. Though if they're going from both directions, there's certainly no guarantee that you will ever move a total of 500 from one to the other. --0016e6d975ba306418048e04e961--