🎲 Team Randomizer (Group Generator)
By ToolNimba Editorial Team · Updated 2026-06-19
Add some names, choose how to split, then press Generate teams.
This team randomizer turns a plain list of names into fair, random groups in one click. Paste your people one per line, choose either how many teams you want or how many people each team should hold, and the tool shuffles everyone and deals them out evenly. Press Re-randomize for a fresh draw, or Copy to paste the result into a chat, email or scoreboard.
What is the Team Randomizer?
A team randomizer solves a small but surprisingly contentious problem: dividing a group of people into smaller teams without anyone feeling the split was rigged. Done by hand, captains pick favourites and the last person picked feels singled out. Done with a shuffle, every person has the same chance of landing on any team, and the result is something everyone can accept because no human chose it.
Under the hood this tool uses a Fisher-Yates shuffle, the standard algorithm for producing a uniformly random ordering of a list. Each position is filled by swapping in a randomly chosen remaining item, which means all possible orderings are equally likely. The random numbers come from your browser's crypto.getRandomValues, a cryptographically strong source, and we use rejection sampling so there is no bias toward lower-numbered slots. In short, the draw is as fair as a well-shuffled deck of cards.
After shuffling, the names are dealt out round-robin: the first person goes to team 1, the next to team 2, and so on, looping back to team 1. This guarantees the teams differ in size by at most one person, which is the fairest possible split when the headcount does not divide evenly. If you pick a target team size instead of a team count, the tool works out how many teams are needed (rounding up) and still keeps them as balanced as the numbers allow.
When to use it
- Splitting a class or workshop into project groups or breakout rooms quickly and fairly.
- Drawing balanced sides for a sports match, trivia night, or pickup game.
- Assigning a backlog of tasks or shifts across people without playing favourites.
- Pairing people up for icebreakers, secret-santa style draws, or buddy systems.
How to use the Team Randomizer
- Type or paste your names into the box, one per line.
- Choose a split method: by number of teams, or by people per team.
- Enter the number (how many teams, or how many per team).
- Press Generate teams to shuffle and deal everyone out evenly.
- Use Re-randomize for a different draw, or Copy to grab the result.
Formula & method
Worked examples
You have 8 players and want 2 teams.
- Shuffle the 8 names into a random order.
- Number of teams T = 2.
- Deal round-robin: positions 1, 3, 5, 7 go to Team 1; positions 2, 4, 6, 8 go to Team 2.
- 8 ÷ 2 = 4, so each team gets exactly 4 players.
Result: Two even teams of 4 players each.
You have 7 names and want teams of 3 people each.
- Target size S = 3, total N = 7.
- Teams needed T = ceil(7 ÷ 3) = 3.
- Shuffle, then deal round-robin across 3 teams.
- 7 does not divide evenly, so sizes are 3, 2, 2.
Result: Three teams sized 3, 2 and 2 (differing by at most one).
How evenly people split across a chosen number of teams
| People | Teams | Resulting team sizes |
|---|---|---|
| 10 | 2 | 5 and 5 |
| 11 | 2 | 6 and 5 |
| 12 | 3 | 4, 4, 4 |
| 10 | 3 | 4, 3, 3 |
| 9 | 4 | 3, 2, 2, 2 |
Common mistakes to avoid
- Expecting perfectly equal teams from an odd headcount. If the number of people does not divide evenly by the number of teams, some teams will have one extra member. That is the fairest split possible, not a bug. To get equal teams, adjust the headcount or the number of teams.
- Leaving duplicate or blank lines in the list. Empty lines and repeated names can throw off the count. Tick "Ignore blank lines and duplicates" so the same person is not placed twice and the team sizes stay accurate.
- Asking for more teams than you have people. You cannot make 6 teams from 4 people without empty teams. The tool caps the number of teams at the number of names, so every team has at least one member.
- Forgetting to copy before re-randomizing. Each draw replaces the last one. If you like a result, press Copy first, because Re-randomize will reshuffle everyone into a brand new set of teams.
Glossary
- Fisher-Yates shuffle
- An algorithm that rearranges a list into a uniformly random order, where every possible ordering is equally likely.
- Round-robin deal
- Handing out items one at a time across teams in a cycle, so the teams end up as balanced in size as the numbers allow.
- Team size
- The number of people in one team. When the total does not divide evenly, sizes differ by at most one.
- crypto.getRandomValues
- A browser function that supplies cryptographically strong random numbers, used here to make the shuffle unpredictable and fair.
Frequently asked questions
How does the team randomizer make the split fair?
It shuffles your full list with a Fisher-Yates shuffle so every ordering is equally likely, then deals people out round-robin. The randomness comes from your browser’s cryptographically strong generator, so no team is favoured and the result is unbiased.
Can I split by team size instead of number of teams?
Yes. Switch the method to "By people per team" and enter the target size. The tool calculates how many teams that needs (rounding up) and still keeps the teams as balanced as possible.
What happens if the names do not divide evenly?
The round-robin deal makes teams differ in size by at most one person. For example, 11 people across 2 teams gives a 6 and a 5. That is the fairest split when the count is not exactly divisible.
Is my list of names sent anywhere?
No. The whole tool runs in your browser using local JavaScript. Your names are never uploaded, stored, or sent over the network, so it is safe for student lists, staff rosters or any private group.
How do I get a different set of teams?
Press Re-randomize. It reshuffles the same list into a brand new arrangement. Each press is independent, so you can keep drawing until you are happy, then press Copy to save the result.
How many names can I add?
There is no fixed limit beyond what your device can handle, and ordinary lists of dozens or hundreds of names process instantly. Each name goes on its own line in the box.