How to use it
- Paste the people, one per line or separated by commas. You can add up to 200 names of up to 30 characters. If there is a value you want spread out, such as skill level or grade, write it as "name:tag" (tags up to 20 characters).
- Choose the number of teams (2 to 100) or how many people go in each team. When you choose people per team, the number of teams is the list size divided by that, rounded up.
- Put anyone who must be together or apart in the two rule boxes. Each box takes up to 50 lines and can stay empty.
- Press "Build teams" for the members of each team and a table of tags. If you don't like it, press "Shuffle again". The result to copy below can be pasted into a chat or a document.
Writing same-team and different-team rules
One line is one rule. Separate names on a line with commas and write the names only, without tags. A line in "Same team" puts all of those people on one team, and a line in "Different teams" puts all of them on separate teams. If you list three names in a different-teams line, they go to three different teams, so you need at least three teams.
How tags are balanced
With tag balancing on, the number of people with each tag differs by at most one between teams. People without a tag count as one more value, "no tag". With no rules, every tag value is split that evenly. With rules, the tool first builds a plan that meets them, then tries swapping two people (or two groups of the same size) and keeps a swap only if every rule still holds and the balance score drops, up to 2,000 tries. The result is never worse than the first valid plan, but it is not promised to be perfectly even.
If your rules are tight and no valid plan turns up in 200 random tries, the tool switches to a search that checks the rules one by one. A plan found that way is not guaranteed to be equally likely among all valid plans.
Example
Splitting 8 tagged people into 3 teams gives teams of 3·3·2. Put Alex and Chris on the same team, keep Brooke and Dana on different teams, and turn tag balancing on, and you get teams like the example above. The 3 people tagged "senior" spread across the teams as 1·1·1.
When the rules do not fit
- If there are more teams than people, you are told so.
- If a same-team group is also marked as different teams, a same-team group is larger than a team can be, or more people must be apart than there are teams, you see the names involved.
- When several rules clash in a tangle, you see candidate rules that clash, with names. Removing some of them may fix it, but they are not promised to be the smallest set.
- With a very large number of rules you may see that it could not decide in time. Remove some rules and try again.
Before you use it
- If you only need to divide people with no rules, the team splitter is simpler.
- Names that repeat are counted as separate people. To use one in a rule, tell them apart, for example "Alex A" and "Alex B".
- The names and rules are handled only inside this device. They are never stored, never sent to a server, and never put in the page address.