A random option course generator for Prolog homework