From: Jean-Julien Fleck Date: 2010-08-17T22:33:21+09:00 Subject: Re: can i do this in ruby? a simulation process > 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. Specifications are clear, at least to me: "A vehicle leaves the first city every 5-35sec. [...] How long does it take for 500 people to arrive in the second city." > 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. Then the problem is turning into a (sort of) random walk: it's getting far more complicated (but far more interesting ?) Cheers, -- JJ Fleck PCSI1 Lycée Kléber