using System.Collections.Generic;
public DateTime Start { get; set; }
public int Duration { get; set; }
public override string ToString() {
return string.Format("{0:HHmm} {1:HHmm}", Start, Start.AddMinutes(Duration));
static Random _r = new Random();
public static void Main(string[] args) {
TimeTable().Take(_r.Next(5, 15)).OrderBy(s => s.Start).ThenBy(s => s.Duration).ToList().ForEach(Console.WriteLine);
static IEnumerable<Show> TimeTable() {
Start = new DateTime(1995, 9, 28, 15, 30, 0).AddMinutes(5 * _r.Next(18)),
Duration = 5 * _r.Next(4, 12)