int dayOfWeek = 1 + rnd.nextInt(5); // Mon - Fri
int absStartMins = 60 * startHrs + startMins; // convert to minutes
int absStopMins = absStartMins + CLASS_LENGTH_MINS;
timeSlots[i] = new TimeSlot(dayOfWeek, absStartMins, absStopMins);
}
Arrays.sort(timeSlots);
for (int i = 0; i < howMany; ++i) {