01 / Shuffle
Fair order
The names are shuffled with your browser's secure random numbers, so every order is equally likely.
Free tool
Paste the names, choose how many groups or how many people in each, and press Make groups. Ask for several rounds and each new round searches for groups that put people who have already worked together side by side as little as it can, and says how many repeat pairs are left. Keep two people apart or together, spread a label such as a reading level evenly, choose what happens to leftover people, name the groups with numbers, letters or colours, pick a random leader for each, then print the groups or copy them into a spreadsheet.
Need a custom tool, app or website? Contact us →Groups
Rules (optional)
Cmd+Enter (Ctrl+Enter on Windows) makes groups. Names stay on this page unless you save the list.
Lists
Everything happens in your browser. Names and saved lists stay in your browser and are never sent anywhere. A share link carries the names inside the link.
How it works
01 / Shuffle
The names are shuffled with your browser's secure random numbers, so every order is equally likely.
02 / Cut
The sizes are worked out before the shuffle, then the shuffled list is cut into groups of those sizes.
03 / Rounds
For each later round, up to 2,000 shuffles are tried and the one with the fewest repeat pairs is kept.
Guide
A random group generator splits a list of people into groups by chance, so nobody can say the groups were picked on purpose. Use it for classroom work, workshops, game nights, breakout rooms and sports practice. This one also handles several rounds in a row, which is the case that most tools get wrong: a plain reshuffle can put the same two people together again and again. Here, every round after the first looks for the arrangement that repeats the fewest pairs.
Ava, Ben. To spread a label evenly, write it after a bar, such as Ava | A, and switch on Spread labels evenly.With a number of groups, the people are shared out as evenly as possible. 14 people in 4 groups gives 14 divided by 4, which is 3 with 2 left, so two groups get an extra person: sizes 4, 4, 3 and 3. With a size per group, there are three ways to deal with the leftovers, shown here for 14 people in groups of 4:
| Leftover people | How it works | Groups for 14 people, size 4 |
|---|---|---|
| Spread out | Use enough groups for everyone, then share evenly | 4 groups: 4, 4, 3, 3 |
| One smaller last group | Fill groups of 4, the last has the rest | 4 groups: 4, 4, 4, 2 |
| Join the existing groups | Use as many full groups as fit, add the rest to them | 3 groups: 5, 5, 4 |
In round 1 the groups are a plain random split. For each later round the tool tries up to 2,000 random splits, counts for each how many pairs of people in the same group have already been together in an earlier round, and keeps the split with the lowest count. If one has no repeats at all, it stops looking. The round heading says Nobody meets a repeat partner in that case, or the number of repeat pairs when some were unavoidable.
Sometimes repeats cannot be avoided. Take 8 people in 2 groups of 4. In round 1 each group has 6 pairs. For round 2, any new group of 4 must take people from both old groups, and the best it can do is 2 from each. That gives 1 old pair from each side, so 2 repeat pairs in each new group and 4 in all, which is what the tool reports. With 12 people in 3 groups of 4, round 2 cannot be free of repeats either: a new group of 4 must hold at least 2 people from one old group, so the best is 1 repeat pair in each group, 3 in all. With 12 people in 4 groups of 3, a second round with no repeats is possible. Each round is searched on its own, so a perfect set of many rounds, which exists for some sizes, is not always found. If a heading shows a few repeats, press Make groups again.
Random does not mean balanced, unless you ask for it. Skills, friendships and shy students are not taken into account by the shuffle. Two tools help here. Keep apart and Keep together take pairs of names, and the tool searches up to 2,000 splits for one that breaks none of them, then tells you if a rule could not be kept. Spread labels evenly deals the people of each label round the groups in turn, so a label held by 6 of 24 people ends up about equally in every one of 4 groups. A label is any word after a bar, such as a reading level, a language or a year. For sport, with skill levels, captains and team names, use the team generator.
Work out the sizes before you press the button. 25 people in groups of 4 are not a clean fit, and the Leftover people choice decides what you get:
| Leftover people | Groups for 25 people, size 4 |
|---|---|
| Spread out | 7 groups: 4, 4, 4, 4, 3, 3, 3 |
| One smaller last group | 7 groups: 4, 4, 4, 4, 4, 4 and a group of 1 |
| Join the existing groups | 6 groups: 5, 4, 4, 4, 4, 4 |
The second row shows why One smaller last group needs a look: a group of one is rarely what you want. Spread out never makes a group more than one person smaller than another. Join the existing groups keeps the groups near your size and makes a few one bigger.
To pick a single winner instead, use the random name picker, or put the names on the spin the wheel.
Questions
Paste the names, one per line, choose the number of groups, and press Make groups. Press it again for a new split.
Choose Leftover people. Spread out keeps sizes within one of each other, One smaller last group leaves a short group, and Join the existing groups makes the groups bigger.
Set Rounds to 2 or more. Each later round is searched for the fewest repeat pairs and the heading tells you how many remain.
With big groups or many rounds, it may be impossible to avoid them. The tool also searches randomly, so you can press Make groups for another try.
The shuffle uses your browser's secure random numbers and is unbiased: every order of the names is equally likely. Later rounds then favour fewer repeat pairs on purpose.
Yes. Type their names under Keep apart, one pair a line. The tool searches for a split that keeps every pair apart and warns you if it could not.
Write a label after each name, such as Ava | A, switch on Spread labels evenly, and each label is shared out across the groups.
No upload. They stay on the page until you press Save list, which keeps them in this browser only.
Press Save as CSV. The file has the round, the group and the name, one row per person.