Random Team Generator

Share:
Fun & Misc

Random Team Generator

Split a list of names into balanced random teams

By Checked against sources by Last reviewed GROUPS RANDOM TOOLS TEAM GENERATOR
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Random Team Generator

For skill-balanced teams, add a rating with a colon — Alice:8 — and tick the box below. The list stays in this page: nothing is uploaded, saved or put in the address bar.

Advertisement
After tool · AD-W1Responsive · Post-tool

How to Use the Random Team Generator

Paste your names

Type or paste everyone's names into the box, one per line. This is your roster — the tool will divide it into the number of teams you choose.

Choose how many teams

Set the number of teams. The generator splits people as evenly as possible — team sizes never differ by more than one person, so nobody is left on a lopsided side.

Balance by skill (optional)

For competitive games, add a skill rating after each name like Alice:8, tick "Skill-balanced", and the tool distributes players to keep each team's total close while still keeping sizes within one of each other.

Generate and copy

Press "Generate teams" for an instant split, again for a re-draw, and use "Copy teams" to paste the result into a chat, email, or scoreboard. Everything runs in your browser.

Advertisement
After how-to · AD-W2Responsive

Splitting People into Fair Teams

Even Sizes, the Easy Part

Dividing a group into teams sounds trivial until you do it by hand for a class of thirty or a five-a-side tournament. The first job is simply making the sizes even: with eleven people and three teams you want sizes of four, four, and three, never five, five, and one. This generator handles that automatically — it shuffles the roster with a Fisher–Yates shuffle driven by your browser's cryptographic random number generator, then deals people out round-robin, so the largest and smallest team never differ by more than a single person. That alone covers most everyday needs: splitting a classroom into project groups, a party into charades teams, colleagues into breakout rooms, or friends into two sides for a pickup game. Because the shuffle is genuinely random and runs entirely in your browser, every regeneration gives a fresh, fair split, and nobody can claim the teacher or organiser stacked the sides.

The harder problem is fairness of strength, and that is where skill-balancing comes in. If you just split a group of mixed ability at random, one team can end up with all the strong players by pure chance — fine for fun, frustrating for anything competitive. By giving each person a skill rating and turning on skill-balanced mode, the tool stops dealing blindly and instead assigns players greedily: it sorts everyone from strongest to weakest and drops each person onto whichever team currently has the lowest total, among the teams that still have room. That room rule matters: without it, one star and five beginners split into two teams as one player against five. A group rated 10, 9, 8, 7, 6 and 5 splits into two sides totalling 23 and 22 rather than 27 against 18. It is a quick rule of thumb, not a search for the perfect split, and it says on screen how far apart the totals ended up.

"Random teams are easy; fair teams are the trick. Even sizes come from a good shuffle — even strength comes from dealing your best players to whichever side is currently weakest."

When to Balance and When to Just Shuffle

Choose the mode to match the moment. For casual, social, or icebreaker situations, leave skill-balancing off — pure random is fairest in spirit and avoids the awkwardness of publicly rating people. For competitive matches, leagues, or anything where a blowout spoils the fun, rate the players and balance: it produces closer games and happier participants. A few practical tips: ratings can be any positive numbers on any scale you like, as long as you are consistent; people without a rating count as the average of those who have one; and you can always regenerate to get a different valid split if the first one separates two friends or rivals you would rather keep apart. The tool is deliberately simple and private — your roster, which may be students, colleagues, or club members, never leaves your device. For most team-splitting needs, from the classroom to the five-a-side pitch, it turns a fiddly manual chore into a one-click, demonstrably fair result.

Pure randomness stacks one side; the greedy pass stops it

01

Team sizes here never differ by more than one person, in random and in skill-balanced mode.

02

The shuffle is Fisher–Yates, in the in-place form Durstenfeld published as "Algorithm 235" in 1964, fed by crypto.getRandomValues with rejection sampling.

03

Drawing the swap position from the whole list at every step, a common mistake, makes some orders likelier than others: of the 27 equally likely draws for three names, three orders come up 5 times and three only 4, instead of 4.5 each.

04

Skill-balanced mode gives each player to the lowest-total team that still has room; it keeps totals close but does not promise the best possible split.

05

Unrated players count as the average of the rated ones, and the result shows the figure used.

Frequently Asked Questions

  • In random mode it shuffles your roster (Fisher–Yates, using the browser's cryptographic random numbers) and deals people out round-robin, so team sizes never differ by more than one. In skill-balanced mode it sorts players by rating and gives each to the lowest-total team that still has room, so sizes stay within one and totals stay close. Both run in your browser.
  • Add a skill rating after each name with a colon — for example Alice:8, Bob:5 — then tick "Skill-balanced". The tool keeps each team's total close and shows how far apart the highest and lowest totals ended up. Ratings can be any consistent scale; unrated names count as the average of the rated ones.
  • Yes, as equal as the numbers allow, in both modes. If the people divide evenly, every team is the same size; otherwise the extra people go one each to some teams, so the biggest and smallest differ by at most one. Until November 2026 skill-balanced mode could break this (one strong player against five weak ones came out 1 v 5); it now cannot.
  • Yes — just press "Generate teams" again for a fresh, equally fair split. This is handy if the first draw happens to put two friends on opposite sides, or two rivals together, and you would prefer to try again. Each regeneration is independent and random.
  • Hundreds of people and up to fifty teams. The split is instant at any realistic size. The only constraint is that you cannot have more teams than people — if you ask for more teams than names, the tool caps the number of teams to the number of people.
  • Yes. The split runs in your browser: the list is not uploaded, not saved, and not written into the page address, so it cannot leak through a shared link or your history. This matters when the names are students, employees or club members. "Copy teams" puts the result on your clipboard for you to paste; nothing is sent automatically. Reloading the page clears the list.
  • Any positive numbers, as long as you are consistent. A 1–10 scale is common and easy, but you could use 1–100, or estimated points-per-game, or any measure of strength you have. What matters is the relative differences between players; the tool balances the totals, so the actual range does not matter as long as everyone is rated on the same scale.
  • Partly. Players with equal ratings are shuffled first, so regenerating can swap them between teams. Players with different ratings mostly land the same way each time, because the balancing rule is fixed. For more variety, use plain random mode.

Method & sources

How it computes

Sizes: N mod k teams of ⌈N/k⌉, the rest ⌊N/k⌋. Random: Fisher–Yates (Durstenfeld) shuffle on crypto.getRandomValues integers with rejection sampling, dealt round-robin. Skill-balanced: shuffle, sort by rating, give each player to the lowest-total team with room under the size rule; unrated = mean of rated.

What this tool implements

  • Randomness: integers from crypto.getRandomValues with rejection sampling (no modulo bias); the shuffle is Fisher–Yates in Durstenfeld's in-place form (j uniform in 0…i). Uniformity is checked by a chi-square test over all orderings of 3 and 4 items.
  • Team sizes differ by at most one in both modes: N mod k teams get ⌈N/k⌉ people and the rest ⌊N/k⌋.
  • Skill balance is a greedy heuristic, stated as such (keeps totals close, not optimal); the page reports the gap between the highest and lowest team totals and the average used for unrated players.
  • Privacy: the roster is processed in the page only; no network request, no storage, nothing written to the URL. Copy goes to the clipboard only when the reader presses Copy.
  • Corrected 2026-11-03: skill-balanced mode ignored team sizes (1 v 5 possible); unrated players counted as 1, not the average; "minimise variance" label; totals printed with floating-point noise.

Sources

  • Durstenfeld R. Algorithm 235: Random permutation. Communications of the ACM. 1964;7(7):420. doi:10.1145/364520.364540
  • W3C. Web Cryptography API — Crypto.getRandomValues(): https://www.w3.org/TR/WebCryptoAPI/

What can make this go out of date

  • None at runtime beyond the browser's cryptographic random number generator; names never leave the page.
Advertisement
Pre-footer · AD-W3 728 × 90