DoolityDoolity

Random Team Generator with Rules

Paste up to 200 names and split them into a set number of teams or into teams of a set size. Rules about who must or must not share a team are always kept, and skill scores and group tags can be balanced.

Absent this time

The names appear here. Tap the people who are not here today. They stay on your list.

Split by
Extra people
Team names

Rules

Tap 2 or more names, then choose what the rule does. Rules are always kept.

Pick at least 2 names for a rule.

No rules yet.

Options

Teams

Your teams appear here.

Names, scores, tags, and rules are saved only in this browser. They are not sent to a server.

Use it to make teams and groups for classes, workshops, and games.

With rules or balance options on, the teams are random only within those rules.

How to use the team generator

  1. Paste the names, one per line. To balance teams, add a skill score and a group tag after each name, such as “Alex, 4, Grade 7”.
  2. Choose a number of teams or a number of people per team, and where the extra people go.
  3. To add a rule, tap two or more names and choose “Same team” or “Different teams”. Tap the names of absent people to leave them out this time.
  4. Turn on the balance options you need and press Make teams.
  5. Move a person to another team if needed, then copy, download, or print the teams. Write down the seed to show the same result again.

What is a random team generator?

A random team generator is a tool that splits a group of people into teams by chance instead of by choice. Teachers, coaches, and workshop hosts use it so that no one picks teams by hand and no one is picked last.

Real groups often come with rules: two students who must not share a project group, two friends who need the same car, or a mix of beginners and experienced players on every side. A generator with rules picks at random only among the splits that keep them.

How the teams are decided

  • The Fisher–Yates shuffle, published by Ronald Fisher and Frank Yates in 1938 and adapted for computers by Richard Durstenfeld in 1964, puts a list in random order so that every order is equally likely.
  • The number of possible splits grows fast. 12 people can be split into 3 unnamed teams of 4 in 5,775 ways: 12! ÷ ((4!)³ × 3!).
  • By the pigeonhole principle, k people who must all be on different teams need at least k teams. With 3 teams, a rule that keeps 4 people apart cannot be kept.
  • Splitting numbers into groups with equal sums is the partition problem, which is NP-hard. For large groups, no known method checks every split quickly, so balancing tools search for a split that is close to even.

When to use it

  • Splitting a class into project groups while keeping certain students in different groups
  • Making two even sides for a futsal or basketball game from the players’ skill ratings
  • Mixing departments or grades in workshop groups so that every table has people from each group
  • Making new groups each week that differ from last week’s groups

Questions about the team generator

Is the result really random?

The seed comes from crypto.getRandomValues, the secure random number generator built into your browser, at the moment you press Make teams. Without rules or balance options, every split with the same team sizes is equally likely. With rules or balance options, the tool picks at random only among splits that keep the rules and are close to even, and the result says so.

What is the seed for?

The seed fixes the sequence of random numbers that the tool uses. The same seed with the same names, rules, and options gives the same teams, so other people can check a result afterwards. Teams that you change by hand cannot be made again from the seed.

What happens when rules conflict?

The tool names the rule that causes the problem before it makes teams. Examples are a same-team group that is larger than the largest team, more people to keep apart than there are teams, or two people who must be together and apart at the same time. If the rules fit but no split is found in 500 tries, change the team sizes or remove a rule.

How does skill balancing work?

Give each person a score from 0 to 100, for example 1 to 5. The tool aims for team totals close to the team size times the average score, so teams of different sizes are compared fairly. A person without a score counts as the average. Each team box shows the total and the average.

What does “As different from last time as possible” do?

The tool keeps the last teams in this browser. With this option on, it counts the pairs of people who were on the same team last time and looks for a split with as few of those pairs as possible. Rules still come first.

Are the names saved or sent anywhere?

They are saved only in this browser, so the list, the absences, and the rules come back on your next visit. Nothing is sent to a server. On a shared computer, press Clear saved list when you finish.