On the Roster page, place a "random group generator" button or link. When clicked, the button will make a dialogue box that asks, "How many groups do you want?" It will then randomly assign students to the number of groups that the teacher requested.