Example #1
0
 public void GeneranorTruck()
 {
     for (int i = 0; i < 5; i++)
     {
         Truck truck = new Truck();
         truck.Marks    = (Vehicle)rand.Next(0, 4);
         truck.Number   = Convert.ToString(rand.Next(1000, 9999));
         truck.Speed    = rand.Next(60, 250);
         truck.CarryCap = truck.CarryingCapacity();
         transport.Add(truck);
     }
 }