Creates random assignment code