Paste a list of names, choose how many teams you want, and get a fair random split. Team sizes differ by at most one person, and everyone is placed exactly once.
The list is shuffled with a Fisher–Yates shuffle driven by secure random numbers, then dealt round-robin to the teams. Sizes therefore differ by at most one and every position is equally likely for everyone.
The first teams get one extra person. With 10 people and 3 teams the sizes are 4, 3, 3 — never 5, 3, 2.
Choose the number of teams that gives your size: for teams of 4 with 20 people, pick 5 teams.
They are treated as separate entries, so two people with the same first name will both be placed. Add a surname or initial to tell them apart.
The generator uses a Fisher–Yates shuffle: for each position from the end of the list, swap it with a uniformly random earlier position (using crypto-grade randomness). Every ordering of the list is then equally likely. The shuffled list is dealt one at a time to teams 1, 2, … N, 1, 2, … so team sizes are either ⌊total ÷ N⌋ or ⌈total ÷ N⌉ — never further apart than one.
Inputs: 10 names, 3 teams.
Steps: After shuffling, names are dealt in positions: team 1 gets shuffled names 1, 4, 7, 10 (4 people); team 2 gets names 2, 5, 8 (3 people); team 3 gets names 3, 6, 9 (3 people). 4 + 3 + 3 = 10 — everyone placed once.
Result: Balanced teams of 4, 3 and 3.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.