run with:
ruby simulating_vehicles.rb
or to see each vehicle:
ruby -v simulating_vehicles.rb
You'll have to tally the results yourself across many runs, but this is way more than you deserve. (And you really need to understand it before you turn it in.)