Example #1
0
        public static Airline SelectAirline()
        {
            int random = Randomiser.Randomise(airlines.Count);

            return(airlines[random] as Airline);
        }
Example #2
0
 public Flight(Airline airline)
 {
     this.Airline  = airline;
     this.FlightNo = Randomiser.Randomise(1, 999);
     this.Time     = DateTime.Now.Add(new TimeSpan(0, 0, Randomiser.Randomise(-60, 60)));
 }