From: Bruce Wayner Date: 2010-08-17T18:52:18+09:00 Subject: Re: can i do this in ruby? a simulation process Jean-Julien Fleck wrote: >> Requirements: >> 1. A simulation process of the movement of vehicles from one point to >> another. >> 2. The time (in minutes) for 500 people to arrive in the second city. >> >> i can't even think on how can i start this one in ruby a newbie like me >> have only limited knowledge on ruby. can someone help with my program? > > You sure can do it in ruby but first you have to decide what ruby have > to do for you: take a sheet of paper and write down the differents > steps each Vehicle has to go throught in order to reach the second > city. I'm sure you will see more clearly what you have to do next to > implement each step. > > Hint: it have to do with probability distributions and you will most > certainly need the metho 'rand' > > Cheers, Cheers Thanks, anyway i already did writing and other stuff but the only problem is that i don't know to start my code. :( -- Posted via http://www.ruby-forum.com/.