Random team generator

A random team generator splits a list of names into fair teams in seconds. Paste your roster, pick how many teams you need, and choose pure random, skill-balanced or captains mode. It is free, there is no signup, and every name stays in your browser.

Last verified: November 20, 2026 · Sources: Wikipedia Fisher-Yates shuffle, MDN crypto.getRandomValues · Independent tool, not affiliated with any team picker service

Generate teams

Skill-balanced and captains modes use the number after a name as a skill rating from 1 to 5, for example Maya 4. A name with no number counts as 3. Pure random ignores the numbers.

A seed makes the split repeatable: the same names, settings and seed always rebuild the same teams. Seeded draws use a small deterministic generator, not the cryptographic one.

A sample roster of 12 names is ready below. Paste your own list and press Generate teams.

Names are processed in your browser and never uploaded. A class list is personal data: it stays on this device, but do not paste anything you would not want on a shared screen.

How the split works

The list is shuffled with the Fisher-Yates method, the standard way to shuffle without favoring anybody, then dealt out across the teams like cards. Team sizes never differ by more than one person, unless a keep-together group makes one team bigger. The random numbers come from the browser's cryptographic source, crypto.getRandomValues, drawn with rejection sampling so no value is more likely than another. The page never uses Math.random for a draw.

Balanced mode sorts everyone by skill first, then deals them in a snake draft: the strongest player goes to Team 1, the next to Team 2, and so on, then the order reverses. Captains mode picks one captain per team at random, then snake-drafts the rest by skill. Both modes show each team's skill total, so you can see the spread instead of taking it on trust.

A seed makes the split repeatable. The same names, settings and seed always rebuild the same teams, which is useful when a colleague asks how a split was made. Seeded draws use a small deterministic generator, not the cryptographic one, and the status line says which one ran.

Balanced teams

Random is fair, but it is not always even. A pure random draw can put the three strongest players on one team. That is the point of the skill modes: they trade a little randomness for even teams.

Add a number from 1 to 5 after a name, for example Maya 4. A name with no number counts as 3, which keeps the draft honest about what you do not know. Use the scale for one thing only, such as playing strength or experience, and say what it means before you share the list: a 5 in football and a 5 in debating are not the same draft.

The ratings are your judgment. The tool never measures skill, and a wrong rating makes a worse split. If nobody on the list has a meaningful rating, use pure random: a guessed rating is worse than no rating.

Keep people together or apart

Some splits have rules that randomness alone cannot respect. Put a pair in the keep together box to pin two people to the same team, one pair per line, for example Alex, Jamie. Pairs chain together: Alex with Jamie and Jamie with Priya puts all three on one team.

Put a pair in the keep apart box to keep two people on different teams. The generator retries the shuffle, up to 2000 times, until no kept-apart pair shares a team. If no valid split exists, the page says so instead of returning a split that breaks your rule. A rule can be impossible: three people who must all stay apart cannot fit into two teams.

If your rules disagree, the page names the problem. A pair that is both kept together and kept apart cannot be satisfied, and the tool tells you which pair it is.

Stop the same pairs meeting twice

A teacher who splits the same class every week has a problem pure randomness does not solve: the same two students keep landing together. Turn on avoid repeat pairings and the page remembers which pairs have already shared a team, then searches for a split with the fewest repeated pairs and reports the count.

Zero is not always possible, and the page does not pretend otherwise. With 3 teams of 4, every new team of 4 must hold two people from the same old team, so the lowest honest number there is 3 repeated pairs. With 6 teams of 5, zero is possible, because each new team of 5 can take one person from each old team. The status line gives the number either way, so you can judge the result.

The history lives only in this browser, under the names you pasted. It is not uploaded, and it is not shared with anyone who opens the page on another device. Clear history wipes it.

Where people use it

Classrooms. Weekly project groups from a class list, with avoid repeat pairings on so the same pairs do not keep meeting. Keep-apart rules handle the two students who should not sit together.

Sports and games. Even sides for five-a-side or a quiz night. Captains mode picks the captains at random, then drafts the rest by skill, so nobody can say the teams were stacked.

Workshops and offices. Mixed groups for a training day, with keep-together rules for the two people who share a task and keep-apart rules for a manager and their direct report.

What this tool does not do

  • It does not measure skill. Ratings are numbers you type. A balanced split is only as good as the ratings behind it.
  • It does not know who is available. Everyone on the list is placed. Remove absent people before you generate, or they will still get a team.
  • It does not store your list anywhere. Reload and the names are gone, unless you saved the CSV. The pairing history is the only thing kept, and only in this browser.
  • It does not judge fairness beyond size and skill totals. A split can be even on paper and still feel wrong, for example when two friends land apart. That is what the keep-together box is for.

Frequently asked questions

Is the split really random?

Yes. The list is shuffled with the Fisher-Yates method, using the browser's cryptographic random number generator (crypto.getRandomValues), then dealt out like cards, so every person has the same chance of landing on any team. If you type a seed, the split becomes repeatable: seeded draws use a small deterministic generator instead, and the page says so next to the result.

How many names can I split?

Up to 200 names in one draw. Paste more and only the first 200 are used; the page says how many were left out. Teams are capped at 20, and team sizes never differ by more than one person, unless a keep-together group makes one team bigger.

How does skill-balanced mode work?

Add a number from 1 to 5 after a name, for example Maya 4. Balanced mode sorts everyone by that number and deals them out in a snake draft, so the strongest players spread across teams instead of landing together. Each team card shows its skill total, so you can see the spread. The numbers are your judgment: the tool never measures skill itself.

Can I stop the same people teaming up every week?

Turn on avoid repeat pairings. The page remembers which pairs have already shared a team (in this browser only) and searches for a split with the fewest repeated pairs, then reports the count. Zero is not always possible: with 3 teams of 4, every new team of 4 must hold two people from the same old team, so the lowest honest number there is 3.

Does the tool save my list?

No. Names are never uploaded or stored on a server. The pairing history lives only in this browser's local storage, so next week's draw can avoid repeats. Clear history wipes it, and closing the tab loses nothing else.

What if two people must not be on the same team?

Put the pair in the keep apart box, one pair per line, for example Alex, Jamie. The generator retries the shuffle until no kept-apart pair shares a team. If no valid split exists, the page says so instead of returning a split that breaks your rule.

Sources

Wikipedia, Fisher-Yates shuffle: the shuffle was published by Ronald Fisher and Frank Yates in 1938; the in-place version used here is Richard Durstenfeld's from 1964. Every permutation is equally likely when the random source is unbiased.

MDN Web Docs, Crypto: getRandomValues() method: the browser's cryptographic random number source, which this page uses for every unseeded draw.

Agents

Machine readable summary for AI assistants: