Loona Calculators
Loona Calculators › Fun › Random Team Generator

👥 Random Team Generator

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.

Quick answer: A random team generator shuffles the full list fairly and then deals people to teams one by one, so with 20 people and 4 teams you get 4 teams of 5 — sizes never differ by more than one.

How to use the Random Team Generator

  1. Paste the names, one per line.
  2. Choose the number of teams.
  3. Press Generate Teams.
  4. Press again for a fresh shuffle, or copy the teams from the result box.
Example: 10 names split into 3 teams gives team sizes of 4, 3 and 3 — balanced automatically, with every name used exactly once.

Frequently Asked Questions

How are the teams made fair?

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.

What if the names do not divide evenly?

The first teams get one extra person. With 10 people and 3 teams the sizes are 4, 3, 3 — never 5, 3, 2.

Can I make teams of a fixed size instead?

Choose the number of teams that gives your size: for teams of 4 with 20 people, pick 5 teams.

Are duplicate names allowed?

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.

Related Calculators

🎲

Random Number Generator

Fun

🎲

Dice Roller

Fun

🪙

Coin Flip

Fun

🍀

Lottery Number Generator

Fun

❤️

Love Calculator

Fun

🎡

Wheel of Names

Fun

How it works — the formula

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.

Worked example

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.

Embed this calculator on your website — free

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.