Skip to content
UniKit

Team grouping tool

Split a roster randomly into 2–8 teams with "must be together" and "must be apart" constraints. Group sizes stay within one member of each other, results are reproducible from a seed, and the whole roster stays in your browser.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Roster
One rule per line; everyone on a line lands in the same team. Separate names with commas, spaces or a Chinese enumeration comma.
One rule per line; the members on a line may not share a team. Clashing with a "must be together" rule reports a conflict.

Teams

Members are listed in roster order inside each team. The same seed always produces the same teams; change the seed to reshuffle.

Enter a roster to see the teams

What this tool does

  • Split a roster into random teams before a match, away day or classroom activity so the same people stop pairing up
  • Encode "must be together" (two colleagues from one department) and "must be apart" (last round's opponents) rules so one run satisfies all of them
  • Publish a fair draw: the same seed reproduces the same teams, and a new seed reshuffles on the spot

Example

Input

A
B
C
D

Output

第1组: A、D
第2组: B、C

The default is 2 teams with seed 1, so this result is reproducible; change the seed to 2 for a different draw.

Frequently asked questions

How is the randomness produced, and can I reproduce it?

A built-in mulberry32 pseudo-random generator drives a Fisher–Yates shuffle, and the seed is part of the computation, so the same seed and roster always give the same teams. "Reshuffle" simply increments the seed. No system clock and no Math.random are involved, so results never become unreproducible.

What about uneven team sizes — is it by teams or by members per team?

You choose the number of teams, and every member is placed into the currently smallest team, so sizes differ by at most one person (with "must be together" blocks the difference is measured in whole blocks and can reach two). There is no fixed-members-per-team mode; divide the roster size by the desired team size to pick the team count.

What happens when the constraints conflict?

The tool reports a conflict instead of printing a roster that breaks the rules. Examples are three people who must all be apart but only two teams, or the same pair listed as both together and apart. A rule naming somebody outside the roster is reported separately so typos are never silently ignored.

Is the roster uploaded, and how large can it be?

Nothing is uploaded: the roster and the rules are computed in your browser and the result can be copied. Roster size is only limited by page rendering, so a few thousand lines still work, and duplicate lines are removed and reported in the statistics.

Keywords:team-group

Related tools