Tool

Team randomizer

Paste the names, one per line. Add a number after a name to rate the player and the teams come out even in strength as well as in size.

One per line. Optional rating after the name: “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

Saved on this device. Nothing is sent to a server.

How to use it

Type or paste the players, one per line. Choose how to split: by the number of teams you want, or by the number of players each team should have. Press Make teams. The result appears as team cards, and Copy teams as text puts it on the clipboard in a form you can paste into a group chat.

Your list is remembered on your device. Next week you delete the names of those who cannot come, add the newcomers and press the button.

A worked example

The sample list has ten names. Split into two teams, it gives two fives. Change the number of teams to three and the sizes become 4, 3 and 3. Switch to players per team and ask for teams of four: ten players make three teams, of 4, 3 and 3 again, because the tool never leaves anyone without a team.

Now rate the players. Write the list as:

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

Switch on Balance teams by rating and make two teams. Alex and Sam are split first, then Jordan and Taylor, and so on down the list. Both teams end with a total of 15. Press again and the pairs may swap sides, but the totals stay level. With a purely random split of the same ten players the totals differ by just under 4 points on average, and about one press in twenty produces a gap of 10 or more: both of the best players and most of the next best on one side.

What the rating should be

Any consistent number works: 1 to 5 stars, a 1 to 10 scale, a handicap, goals per game. Decimals are accepted, with a point or a comma. A player without a rating is counted as average for the group, so you only need to rate the people who stand out. Keep the scale honest in both directions: balancing only works if a 2 is as far below a 3 as a 4 is above it.

In a small group the result is exact or nearly so. In our tests with 12 to 30 players rated 1 to 5 and two to four teams, the totals ended within one rating point of each other 97 times in 100.

Why random is fairer than picking

Captains picking in turn is slow, and it always ends with someone being chosen last. A shuffle takes a second and nobody is ranked in public. With ratings entered beforehand you get the balance that picking is supposed to produce, without the ceremony.

The tool accepts up to 200 names and up to 40 teams. To decide which team kicks off, there is a coin toss; to give the teams a fixture list, the round-robin schedule generator.

Frequently asked questions

How do I split a group into random teams?
Paste the names, one per line, choose the number of teams and press Make teams. The list is shuffled and the names are dealt out one at a time, like cards, so the team sizes never differ by more than one. Press the button again for a new split.
How do I make the teams even in ability?
Add a rating after each name, for example a number from 1 to 5, and switch on Balance teams by rating. The strongest player is placed first, then each following player goes to the team that currently has the lowest total, among the teams with the fewest players. Players with the same rating are placed in random order, so repeated presses give different but equally balanced teams.
Is the shuffle really random?
It uses the cryptographic random number generator built into your browser, the same source used to create encryption keys, and a Fisher–Yates shuffle, in which every possible order of the list is equally likely. Random numbers are drawn with rejection sampling so that no position is favoured by rounding.
What if the number of players does not divide evenly?
Some teams get one extra player. With 13 players and 3 teams the sizes are 5, 4 and 4. Which team gets the extra player is random. If you split by team size, the number of teams is rounded up, so 13 players in teams of 5 gives three teams of 5, 4 and 4, not two teams and three people left over.
Can I keep two players together or apart?
Not automatically. To keep two people together, enter them on one line (“Ana + Mihai”) so they are dealt as one entry, then take one player off the other team if the numbers need it. To keep two apart, press Make teams again until they land on different sides; with two teams that takes two presses on average.
Are the names I type stored anywhere?
Only in your own browser, so the list is still there next week. Nothing is sent to a server. Clearing the site data in your browser removes it.

Sources

  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

Tools