From: Bruce Wayner Date: 2010-08-17T23:33:47+09:00 Subject: Re: can i do this in ruby? a simulation process How about like this one: is it possible? Example: Vehicle A took 30 seconds to transfer 1 passenger to the second city Vehicle B took 25 seconds to transfer 2 passenger to the second city Vehicle C took 45 seconds to transfer 3 passenger to the second city Vehicle D took 24 seconds to transfer 4 passenger to the second city Vehicle E took 43 seconds to transfer 40 passenger to the second city Vehicle D took 20 seconds to travel back to the first city Vehicle B took 35 seconds to travel back to the first city Vehicle A took 50 seconds to travel back to the first city Vehicle E took 34 seconds to travel back to the first city Vehicle C took 45 seconds to travel back to the first city Vehicle D took 30 seconds to transfer 4 passenger to the second city Vehicle B took 25 seconds to transfer 2 passenger to the second city Vehicle A took 45 seconds to transfer 1 passenger to the second city Vehicle E took 24 seconds to transfer 40 passenger to the second city Vehicle C took 43 seconds to transfer 3 passenger to the second city ... .. .. people transfer: 500 Total Time: 800.9 -- Posted via http://www.ruby-forum.com/.