How random teams are made
The page first shuffles the whole list of names with the Fisher–Yates method: going down the list, each name swaps places with a randomly chosen name from its own place to the end. Every possible order of the names is equally likely, as long as each choice is fair, and here each one comes from your browser’s cryptographic random generator. Then it cuts the shuffled list into teams:
Here it is with your numbers:
- People = 10
- Teams = 2
- People per team = 10 ÷ 2
- People per team = 5
It means every way of dealing the 10 names into these teams was equally likely.
Teams are as even as possible: sizes never differ by more than one. Asking for 3 people per team with 10 people gives 4 teams of 3, 3, 2 and 2, rather than leaving one person on a team of their own. Two people with the same name are treated as two people.
Source NIST · Dictionary of Algorithms and Data Structures, Fisher-Yates shuffle ↗W3C · Web Cryptography Level 2, the Crypto interface ↗
Random team generator examples
| People | Split by | Teams |
|---|---|---|
| 10 | 2 teams | 5 and 5 |
| 10 | 3 teams | 4, 3 and 3 |
| 10 | 3 per team | 3, 3, 2 and 2 |
| 9 | 2 per team (pairs) | four pairs and one person |
| 9 | 4 teams | 3, 2, 2 and 2 |
| 24 | 6 teams | six teams of 4 |
FAQs
What app can I use to create random teams?
You don’t need an app: paste the names into this page and it splits them in your browser. It shuffles the whole list with the Fisher–Yates method, so every split is equally likely, and the names never leave your device or go into the link.
Source NIST · Dictionary of Algorithms and Data Structures, Fisher-Yates shuffle ↗
How can I randomly pair up names?
Choose Split by: People per team, and 2. With an odd number of people, one person ends up on their own; to make one group of three instead, choose Number of teams and enter half the number of people, rounded down (4 teams for 9 people).
Sources
- NIST: Dictionary of Algorithms and Data Structures, Fisher-Yates shuffle
- W3C: Web Cryptography Level 2, the Crypto interface