Random Team Generator
Paste names, choose how many teams, and shuffle.
How the teams are made
Names are shuffled with a Fisher–Yates shuffle, which here means every possible ordering of the list is equally likely (no name is favored for any position). The shuffled list is then dealt out one name at a time to each team in turn, so team sizes differ by at most one person. For example, 10 names in 3 teams give teams of 4, 3 and 3. Random numbers come from your browser’s cryptographic random source. You can ask for 2 to 20 teams, and blank lines are ignored.
In short
Names are shuffled so that every ordering is equally likely, then dealt out one at a time to each team in turn, so team sizes differ by at most one person. The order you type the names in has no effect on the split.
Frequently asked questions
Can I keep two people apart or together?
The tool has no setting for that. Press the button again for a new shuffle until the teams suit you.
What if I only need to pick one winner?
Use the Spin the Wheel page.
Our test: is every split equally likely?
A team generator is only fair if nobody has a better chance of landing in a particular team or next to a particular friend. To check that, we typed ten names (Ana, Ben, Cho, Dev, Eli, Fay, Gus, Hana, Ivo, Jun) into this page in Chromium 153.0.8010.12, set the number of teams to 3 and pressed Make teams 10,000 times, reading the result off the page after each press.
| What we counted | Expected if fair | Measured in 10,000 splits |
|---|---|---|
| Team sizes | always 4, 3, 3 | 4 / 3 / 3 every time |
| Ana placed in Team 1 | 4 in 10 (40%) | 4,002 (40.0%) |
| Ana and Ben in the same team | 24 in 90 (26.7%) | 2,706 (27.1%) |
The pair figure is the one people worry about. With ten players in teams of 4, 3 and 3, two given people share a team 26.7% of the time: a 4-in-10 chance that Ana is in the team of four times a 3-in-9 chance that Ben joins her, plus the same calculation for each of the two teams of three. The page came within half a percentage point of that over 10,000 tries, which is the size of difference you expect from chance alone. The larger first team is always Team 1, because extra players are dealt from the top, so if the bigger team gets an advantage in your game, swap labels or reshuffle the order.
More details
Where random teams help
Random teams are a quick way to avoid arguments about who picks whom. Teachers use them to form groups for a class activity, coaches to split a squad for a practice game, and friends to divide up for a board game night or a quiz. Because the shuffle ignores the order you typed the names in, nobody can say the split was arranged in advance.
Tips for a good split
Type each person on their own line and check for typos or duplicate names first, since every line counts as one person. If the group is large, start with two or three teams and press the button again until the result looks fair to everyone. When people differ a lot in skill, one simple approach is to make a small list of the strongest players, split that list into teams first, then do the same with the rest and combine the results by hand. The names you type stay in your browser and are not sent anywhere, so you can paste a real class or team list.
Uneven numbers
If the list cannot be divided evenly, the extra people are spread over the first teams, so no team is ever more than one person larger than another. Seven names in two teams give teams of four and three; eleven names in four teams give three, three, three and two.
How many different splits there are
Even a small group can be divided in a surprising number of ways, which is why pressing the button twice almost never gives the same teams. Counting each team by its number (Team 1, Team 2 and so on):
| Group | Teams | Possible splits |
|---|---|---|
| 10 people | 3 teams of 4, 3 and 3 | 4,200 |
| 12 people | 2 teams of 6 | 924 |
| 20 people | 4 teams of 5 | 11,732,745,024 |
Because every ordering of the names is equally likely, every one of these splits is equally likely too. A split you dislike is just as likely to appear again as any other, so the fair way to use a re-roll is to agree before you press the button how many times you will press it.
Shuffling versus counting off
The classic way to make teams in a room is to count off “one, two, three” down the rows. It is quick, but the result depends on where people chose to sit, so friends who sit together still end up split in a predictable pattern and anyone can steer their team by changing seats. A shuffle removes that: the order you typed the names in has no effect on the result. If you keep the list for a whole term, shuffle again for each activity rather than reusing one split, so that everyone works with different people over time.