Open up that many sections. Now each one needs a prof that does that course so choose one at random
numberOfSections = min + rnd.nextInt(max-min);
and every time you change something, you test for badness and tell the random number generator how bad that decision was
// assign professor qualified to teach the course to the section section.prof = section.course.qualifiedProfs[rnd.nextInt(section.course.qualifiedProfs.length)]; // add that section to the professors course load section.prof.addSection(section);
moving right along assign a room/time to the section and test and severly penalize if you have double booked a professor. If you did double book a professor, don't worry about it. At some point the cumulative penalty cost for this assignement will be so bad that you will get a yerScrewed exception thrown and you can just abort the entire assignment process, create a new instance of the random number generator and try again.
Maybe 'strange attractor' would do the job? ;-)Yeah, send me a copy too while you're at it. AlsoOddly enough, Wikipedia doesn't have a page about the
could you super size mine and hold the pickle.
phrase "morron magnet". Not even if you spell the first word correctly.