Skip to content
RandomVal

Browse all tools

Random Team Generator

This random team generator splits a list of names into teams, groups of a set size or pairs; in team mode, sizes never differ by more than one person. Paste your names, choose teams, groups or pairs, and press Make teams.

Sources: Web Crypto API Updated

10 names
Split into

    How the random team generator splits a list

    1. Read the list. Each non-empty line is one person. Spaces at the ends are trimmed. If you paste a single line with commas, it is split at the commas.
    2. Shuffle. The whole list is put in random order with the Fisher–Yates shuffle. Starting from the last name, each name swaps places with a randomly chosen name at or before its own position.
    3. Deal. For teams, the shuffled names are dealt round-robin: the first to team 1, the second to team 2, and so on, starting again at team 1. For groups and pairs, the shuffled list is cut into pieces of the chosen size.

    Press Make teams again and the list is shuffled from scratch. Earlier splits have no influence on the next one. The shuffle draws from the browser's cryptographic generator, as described in how our randomness works.

    Example: 10 students in 3 teams

    Ten students, three teams. After the shuffle the order is: Grace, Ali, Hiro, Dara, Jonas, Chen, Imani, Beatriz, Eli, Fatima.

    Team 1Team 2Team 3
    GraceAliHiro
    DaraJonasChen
    ImaniBeatrizEli
    Fatima

    Ten does not divide by three, so one team has four people and two have three. The extra person always lands in the first teams, but since the order was shuffled first, who that is comes down to chance.

    Example from the random team generator: ten names split into three teams, team 1 Eli, Hiro, Jonas, Beatriz; team 2 Chen, Fatima, Ali; team 3 Dara, Imani, Grace.
    Ten does not divide by three, so one team gets four people. Who that is depends only on the shuffle.

    Will two friends end up on the same team?

    Only by chance, and the chance is easy to work out. With 12 people in 3 teams of 4, once one friend is placed there are 11 places left and 3 of them are on the same team: a chance of 3 in 11, or 27.3%.

    The team generator has no rules to keep people together or apart, so that is the chance every time you press the button. The chart below repeats the split 100,000 times to check it.

    Bar chart of 100,000 random splits of 12 people into 3 teams: two given people landed on the same team 27.4% of the time, against the expected 27.3% (3 of the 11 other places).
    Once one friend is placed, 3 of the 11 remaining places are on the same team, so 3 in 11 is the fair chance.

    Team sizes for 10 to 30 people

    “3 × 5” means three teams of five. Pairs use the default setting, where an odd person out joins a pair to make a trio.

    Names2 teams3 teams4 teams5 teamsPairs
    105 + 54, 3, 33, 3, 2, 25 × 25 pairs
    158 + 73 × 54, 4, 4, 35 × 36 pairs and a trio
    2010 + 107, 7, 64 × 55 × 410 pairs
    2412 + 123 × 84 × 65, 5, 5, 5, 412 pairs
    2513 + 129, 8, 87, 6, 6, 65 × 511 pairs and a trio
    3015 + 153 × 108, 8, 7, 75 × 615 pairs

    Teams, groups or pairs: which split to choose

    • Teams when you know how many sides you need: two teams for a football or basketball game, four for a quiz.
    • Groups by size when the task sets the size: lab groups of three, discussion tables of four.
    • Pairs for two-person teams: partner work, peer review or a secret-partner exchange.

    To pick a single person instead, spin the wheel. To put the whole list in a random order without splitting it, use the random order generator, and to give everyone a numbered turn, the number generator with names.

    Random Team Generator: FAQ

    How are the teams made?

    The list is shuffled with the Fisher–Yates method, using your browser's cryptographic random generator, and then dealt out one name at a time like a deck of cards. Every possible arrangement of the list is equally likely, so nobody is more likely to end up in a particular team or with a particular person.

    What happens when the names do not divide evenly?

    With a set number of teams, the extra people are spread out, so sizes differ by one at most: 23 names in 4 teams gives teams of 6, 6, 6 and 5. With a set group size you choose: add the leftover people to other groups, or let them form a smaller last group. For pairs with an odd number of names, that means one group of three or one person without a partner.

    Can I make teams that are balanced by skill?

    Not automatically. This tool splits purely at random and does not know anything about the people on the list. A simple workaround is to make the split in two passes: first split your strongest players across the teams, then split everyone else and combine the results.

    Can I keep two people apart or together?

    No. There are no rules of that kind. Press the button again for a new split, or move a name by hand after copying the result.

    Are the names sent anywhere?

    No. The split is calculated in your browser. The list is saved in your browser's local storage when you make teams so it is still there next time; the Clear button removes it.

    Sources