Random Team Generator
Split a list of names into random teams of equal size, or into a set number of groups, using cryptographic randomness.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Random Team Generator does
The random team generator on this page will split a list of names into random teams of equal size, or into a set number of groups, using cryptographic randomness. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for splitting a class into project groups. More utilities in this area are collected on FreeToolsWorld.org.
How to use it
- Paste your names, one per line.
- Choose whether you are fixing the number of teams or the number of people per team.
- Read the teams. Each person appears exactly once.
- Edit the list and the split updates immediately.
How it works
The list is shuffled with a Fisher-Yates shuffle driven by crypto.getRandomValues, then dealt round-robin into the teams. Fisher-Yates is the shuffle that gives every possible ordering an equal chance; the naive approach of sorting by a random key does not, and produces measurably biased orderings. Dealing round-robin rather than cutting the shuffled list into blocks is what keeps the team sizes as even as the numbers allow.
When the count does not divide evenly, the remainder is spread one person at a time rather than piled onto the last team. Twelve people into five teams gives three teams of three and two of two, not four teams of two and one of four. The largest and smallest team sizes are shown above so you can see what you are getting before you commit to it.
Splitting by team size rather than team count is the option to use when the constraint is the activity — four to a table, two to a machine, six to a minibus. The number of teams then follows from the arithmetic, and the last team may be short, which is usually what you want in that situation.
One thing worth being deliberate about: rerolling. Reshuffling repeatedly until the teams look right is reintroducing exactly the judgement you were trying to remove, and if the point of randomising was fairness, the first result is the one to take. If some pairings genuinely must be avoided — people who should not be on the same team, a required mix of skill levels — randomness is the wrong tool and the assignment needs doing deliberately.
When to use it
- Splitting a class into project groups.
- Drawing teams for a tournament or a game.
- Allocating people to tables at an event.
- Dividing a workshop into breakout groups.
Common mistakes to avoid
- Rerolling until the teams look fair, which defeats the purpose of randomising.
- Using random assignment when constraints matter, such as keeping certain people apart or balancing skill levels.
- Pasting names separated by commas rather than new lines, which makes the whole list one entry.
Frequently asked questions
Is the shuffle actually random?
Yes — it uses a Fisher-Yates shuffle with crypto.getRandomValues, so every arrangement is equally likely. The common shortcut of sorting by a random comparator produces biased results, which this avoids.
What happens when the numbers do not divide evenly?
The remainder is spread one person at a time across the teams, so sizes differ by at most one. Twelve people into five teams gives three threes and two twos.
Can I keep certain people apart?
Not with this tool — it has no constraints, by design. If particular pairings matter, assign those people deliberately first and randomise only the rest.