Random group generator for a class
Use this random group generator for class activities. Paste the class list and choose a number of groups or a target group size. Sizes differ by no more than one. You can keep students apart or together, and spread one label such as reading level across the groups. The same list works in the name picker and seating chart.
Class list
Rules and labels name students. They are left out of the link unless you check this.
Use this class list in other school tools
Saving is optional. If you save, the list and your rules are kept in this browser's local storage, not in an account.
Labels describe students, so they're only saved if you check this.
Add at least one name.
Waiting for a class list.
- Network requests
- ·
- Our own script
- ·
Balanced groups from one shuffle
With no rules and no Spread by label, students are shuffled with the browser's cryptographic random source, then dealt round-robin. With rules or a label, the page searches for random groups of the same sizes that keep every rule. Choose a number of groups or a target group size; either way, sizes differ by no more than one. Extra students go to the first groups. The list format matches the name picker and seating chart, so you do not retype names between tools.
Saving is optional
Save the list in this browser if you want it available to the fair name picker and classroom seating chart. Your rules are saved with it, and a Spread by label only if you check Save the labels too. Deleting the saved list takes one click and does not contact a server.
Random once is fair. Random every week is not
A single shuffle treats every student equally on the day it runs. Repeated across a term it does not, because independent shuffles will keep putting the same two students together and keep some pairs apart entirely, and the class notices before the teacher does. If grouping matters over a term, keep the previous grouping in front of you and re-run until the overlap looks acceptable, or rotate deliberately instead of randomizing. Keep apart rules help with the pairs you already know about. The page makes one set of groups at a time and doesn't track who has worked together.
FAQ
How do I make random groups for my class?
Paste your class list, one name per line. Under Group by, choose Number of groups or Students per group, then press Make groups. With no rules and no Spread by label, the list is shuffled with the browser's secure random source and dealt out like cards. With rules or a label, the page searches for groups of the same sizes instead. Either way, group sizes never differ by more than one: 26 students in 4 groups come out 7, 7, 6 and 6.
Where do the extra students go?
When you choose a number of groups, into the first groups. With 26 students in 4 groups, Groups 1 and 2 get 7 every time, with or without rules. Who lands in them is random. Students per group is a target: 26 students at 5 per group come out 5, 5, 4, 4, 4 and 4. Nobody is left alone: in groups of 2, an odd-sized class puts the extra student into the last group, so 27 students make 12 pairs and one group of 3.
Can I keep certain students apart or balance groups by gender?
Yes, both. Press Add a rule, choose Keep apart or Keep together, and pick the names; every set of groups it makes keeps every rule, or it tells you the rules can't all be kept and lists them, or that it ran out of time before finding groups. Each press is a fresh try with no memory of past groups.
To spread a label, open Spread by, type the label (for example Gender or Reading level), add a value such as High, and pick the students who have it. The page never guesses a label from a name. A rule always wins over spreading: if the rules make an even spread impossible, the groups still keep every rule and the page lists each group that misses its even share.
Are student names saved or sent anywhere?
Only if you press Save in this browser. That keeps your class list and your Keep apart and Keep together rules on this device. A Spread by label is kept only if you also check Save the labels too, and it deserves a second thought, because a label such as reading level is information about a student. The groups themselves are never kept, so use Copy result or Print before you press Make groups again. Copy share link puts the list after the # in the link, a part browsers do not send to any server. Rules and labels go in only if you check Include the rules and labels in the link. This browser keeps one saved list, so saving again replaces it.
What if two students have the same name?
Give them a last initial before you write any rules, like Sam B. and Sam K. Repeated lines are dropped, ignoring capitals, so two lines reading Sam become one student. Only one of them would land in a group, and the page says how many lines it removed. Initials matter most in rules. When you type Sam into a Keep apart or Keep together rule, the name list offers Sam B. and Sam K. separately, so you can keep apart the Sam you actually mean. Each line is one name.
What does Classroom mode do?
It turns the page into a board for a projector. The site header, the Names box, the rules, the Spread by editor and the page text are hidden, so the class sees the groups but not who you kept apart. The groups get bigger, with dark text on a plain white background. Make groups and Exit classroom mode stay on screen, so you can make a fresh set while projecting. Copy, print, share and the saved list controls are hidden. Press Escape or Exit classroom mode to go back.
Related tools
Need a speaking order inside each group? The fair name picker calls one name per press and gives everyone a turn before anyone gets a second. Want the groups at desks? The classroom seating chart seats the same list in rows, pairs, pods of 4 or a U-shape. Comparing spinner tools? Read Wheel of Names alternatives.