Random Team Generator
Names are shuffled first, then dealt out round-robin.
Space bar reshuffles.
Shuffle first, then deal
The names are shuffled, then dealt out one at a time around the teams like cards. That guarantees the sizes differ by at most one, however many people and teams there are.
The alternative — cutting the shuffled list into blocks — works too, but leaves the remainder awkwardly bunched at the end. Dealing spreads it.
Random is not the same as balanced
Worth being clear about, because it is the commonest complaint. A random split takes no account of ability, experience, who works well together, or who has been on the same team three weeks running.
Sometimes that is exactly what you want: randomness is defensible in a way that a captain's picks are not, and nobody can argue it was unfair.
When you need balance rather than fairness, the usual approach is to sort people into tiers and randomise within each tier — run this once per tier and combine the results.
The playground problem
Picking teams by alternating captains is a genuinely bad system, and most people can remember why. It is public, it is ranked, and being chosen last is a small humiliation performed in front of everyone.
Random assignment removes all of that. For children, for teams at work, and for anything where people might feel judged, it is the kinder mechanism as well as the quicker one.
Uneven numbers
Eleven people into three teams gives 4, 4 and 3. The card readout above says which teams came out larger, so you can decide whether to even it up or let it stand.
Common uses
- Sport and games at short notice.
- Workshop breakout groups and classroom pairs.
- Dividing up tasks without anyone choosing.
- Secret Santa, or any draw where fairness must be visible.
Questions people ask
How are the teams decided?
The names are shuffled with a Fisher-Yates shuffle and then dealt out round-robin, so team sizes differ by at most one.
Does it balance teams by ability?
No. It is random, not balanced. For balance, sort people into tiers and randomise within each tier.
What happens with uneven numbers?
Some teams get one extra person. The readout says which.
How many teams can I make?
Up to twenty, as long as you have at least one person per team.
Why not let captains pick?
Because it is public and ranked, and being chosen last is a humiliation. Random assignment is both kinder and faster.
Where the randomness comes from
Every result on these pages uses crypto.getRandomValues, your browser's cryptographically secure random generator, seeded by the operating system from genuinely unpredictable physical sources.
That is deliberately not Math.random(), which most tools use. Math.random is a deterministic algorithm producing numbers that look random; given enough output, its future values can be predicted. For a dice game that does not matter. For a prize draw, a password or anything anyone might want to game, it does.
The numbers are also produced by rejection sampling rather than by taking a remainder. Taking a random 32-bit number modulo 6 slightly favours the lower faces, because 232 does not divide evenly by 6. The bias is small and it is real, and discarding the leftover tail removes it completely.
Nothing leaves the page
Results are generated in your browser and are not transmitted or stored. Reload the page and they are gone — which matters most on the password generator.