Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Random group generator, with rounds that avoid repeats.

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

Shuffle, cut, then check the pairs.

01 / Shuffle

Fair order

The names are shuffled with your browser's secure random numbers, so every order is equally likely.

02 / Cut

Sizes first

The sizes are worked out before the shuffle, then the shuffled list is cut into groups of those sizes.

03 / Rounds

Fewest repeats

For each later round, up to 2,000 shuffles are tried and the one with the fewest repeat pairs is kept.

Guide

How to make random groups, round after round.

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.

How to use the random group generator

  1. Type or paste names in Names, one per line. A single line with commas also works. Press Try 12 names to see an example.
  2. Under Split by choose Number of groups or People in each group, and type the number.
  3. If you chose people in each group, pick what happens to Leftover people.
  4. Set Rounds to more than 1 for repeated sessions. Choose Group names and turn on Pick a leader for each group if you want one.
  5. To keep two people apart or together, type their names under Rules, one pair a line, such as Ava, Ben. To spread a label evenly, write it after a bar, such as Ava | A, and switch on Spread labels evenly.
  6. Press Make groups, or Cmd+Enter. Press it again for a new split. Copy groups copies plain text, Copy as columns copies one column for each group, ready to paste into a spreadsheet, Print opens a table to print, and Save as CSV downloads a table with the round, the group and the name.
  7. Open a file loads names from a text or CSV file, and a column pasted from a spreadsheet works too. Copy share link puts the names inside a link, after the # sign, which browsers never send to a server.

How the group sizes are worked out

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 peopleHow it worksGroups for 14 people, size 4
Spread outUse enough groups for everyone, then share evenly4 groups: 4, 4, 3, 3
One smaller last groupFill groups of 4, the last has the rest4 groups: 4, 4, 4, 2
Join the existing groupsUse as many full groups as fit, add the rest to them3 groups: 5, 5, 4

Rounds without repeating pairs

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.

Fairness and checking the result

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.

Tips for classrooms and events

  • Project the groups on a screen and ask students to move straight away, so the groups do not get negotiated.
  • For group work over a week, use Rounds and give each round a task.
  • Use Group names with Colours to make it easy to call a group out loud.
  • The list is not saved unless you press Save list, so student names do not stay on a shared computer by accident. Delete saved lists when you finish on a shared device.
  • Press Print for a handout. The table has one column for each group and the date at the top.

Choosing the group size

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 peopleGroups for 25 people, size 4
Spread out7 groups: 4, 4, 4, 4, 3, 3, 3
One smaller last group7 groups: 4, 4, 4, 4, 4, 4 and a group of 1
Join the existing groups6 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

Good to know.

How do I split a list of names into random groups?

Paste the names, one per line, choose the number of groups, and press Make groups. Press it again for a new split.

What if the names do not divide evenly?

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.

How do I stop people landing in the same group again?

Set Rounds to 2 or more. Each later round is searched for the fewest repeat pairs and the heading tells you how many remain.

Why does a round still show repeats?

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.

Is it really random?

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.

Can I keep two students apart?

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.

Can I mix groups by level or skill?

Write a label after each name, such as Ava | A, switch on Spread labels evenly, and each label is shared out across the groups.

Are names stored or uploaded?

No upload. They stay on the page until you press Save list, which keeps them in this browser only.

Can I get the groups into a spreadsheet?

Press Save as CSV. The file has the round, the group and the name, one row per person.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch