Tool

Team randomizer

One name per line. Put a number after a name to rate that player, and teams come out balanced for strength as well as for headcount.

Balanced by ratingCopy as textUnbiased shuffle

Team randomizer: working area

Each name on its own line. A rating can follow the name, such as “Alex 4” or “Sam, 3.5”.
Split by

1Team 15 players

  1. Casey
  2. Sam
  3. Jordan
  4. Charlie
  5. Taylor

2Team 25 players

  1. Robin
  2. Alex
  3. Jamie
  4. Riley
  5. Morgan

Stored on this device only. Nothing goes to a server.

Using the tool

Type or paste your players, one per line. Next choose the split style, either a set number of teams or a set number of players per team. One press of Make teams produces a card for each side, and Copy teams as text sends the lineup to your clipboard for the group chat.

Your list is kept on the device. For next week, just remove the absentees, add newcomers and press again.

A quick example

There are ten names in the sample list. Splitting in two gives fives. Ask for three teams and the sizes are 4, 3 and 3. Choose players per team and enter four, and ten players still become three teams of 4, 3 and 3, as nobody is left without a team.

Now add ratings. Write the list like this:

  • Alex 5, Sam 5
  • Jordan 4, Taylor 4
  • Casey 3, Morgan 3
  • Riley 2, Jamie 2
  • Robin 1, Charlie 1

Tick Balance teams by rating and request two teams. Alex and Sam end up apart, then Jordan and Taylor, and so on down the list, and each team totals 15. Another press may swap who plays where while keeping the totals equal. A purely random split of these ten does worse: the totals typically differ by almost 4 points, and about one press in twenty opens a gap of 10 or more, leaving both top players and most of the next best together.

Choosing a rating scale

Any consistent figure will do, such as stars out of 5, a score out of 10, a handicap or goals per game. Decimals are fine, written with a point or comma. Unrated players are treated as average for the group, so you can limit yourself to rating the standouts. Keep the scale even, because balancing assumes a 2 is as far under a 3 as a 4 is over it.

Small groups balance exactly or nearly so. Testing 12 to 30 players rated 1 to 5 across two to four teams, we saw team totals within one rating point of each other in 97 cases out of 100.

Why shuffle instead of picking

Captains choosing in turn is slow, and somebody always goes last. A shuffle is over in a second with nobody ranked in public. Give ratings in advance and you get the fairness that picking aims for without the ritual.

Limits are 200 names and 40 teams. A coin toss can decide who kicks off, and the round-robin schedule generator can turn the teams into a fixture list.

Questions people ask

What's the fastest way to split people into random teams?
Drop the names in, one per row, say how many teams you need and hit Make teams. The list gets shuffled and dealt out like a deck of cards, so team sizes differ by one at most. Press again for a fresh split.
How do I balance teams by ability?
Write a score next to each name, for instance 1 to 5, and tick Balance teams by rating. The strongest player is placed first. Everyone after that goes to the team with the lowest running total, chosen only from teams that have the fewest players so far. Players with matching scores are ordered randomly, so you can press again for another, equally fair, split.
Can I trust the shuffle?
It combines your browser's cryptographic random generator, the kind that creates encryption keys, with a Fisher–Yates shuffle, which gives every possible ordering equal odds. Rejection sampling stops rounding from tilting the draw towards any position.
What happens when the group doesn't split evenly?
Some teams simply have one more player. With 13 players and 3 teams you get 5, 4 and 4, and chance decides which team is the 5. If you split by team size, the number of teams rounds up: 13 players in teams of 5 gives 5, 4 and 4, not two full teams and three spare people.
Can I keep two players on the same team, or on different ones?
There's no setting for it, but there are workarounds. For a pair who should stay together, enter them on one line (“Ana + Mihai”) so they're dealt as one entry, then shift a player over if the numbers are uneven. For a pair who should be apart, press Make teams until they split; with two teams, expect two presses on average.
Does the tool save the names I enter?
Yes, but only in your own browser. That's why next week's list is still waiting, and no server ever sees it. Clearing site data in your browser deletes it.

Where the numbers come from

  1. Knuth DE. The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edition, section 3.4.2, Algorithm P (shuffling). Addison-Wesley, 1997
  2. MDN Web Docs, Crypto.getRandomValues() (cryptographically strong random values in the browser)
  3. Wikipedia, Fisher–Yates shuffle (the algorithm and the modulo-bias pitfall)
  4. Graham RL. Bounds on multiprocessing timing anomalies. SIAM Journal on Applied Mathematics 17(2), 1969, pp. 416–429 (the largest-first rule used for balancing)

Other tools

Match-day tools