// Functionality public static Tour random(int n) { List <City> t = new List <City>(); for (int i = 0; i < n; ++i) { t.Add(City.random()); } return(new Tour(t)); }