Generate random team

Split non-empty name rows into balanced teams by team count or into fixed-capacity chunks.

freeworks offlinenothing uploaded
ToolRandom Team Generator
Input
Output

How it works

Names are first permuted with Fisher–Yates and rejection-sampled indexes. Team-count mode deals the shuffled rows cyclically so sizes differ by no more than one; team-size mode slices consecutive chunks and permits a smaller final team.

  • Exactly one partition mode is required because a requested number of teams and a fixed capacity can conflict.
  • Blank seed uses Web Crypto, while seed text deliberately reproduces one allocation.

Worked example

Six names into two teams
Give teamCount to split into that many balanced teams
Input
											Names: ["Ana","Ben","Cleo","Dan","Eve","Finn"]
Team count: 2
Seed: gym-class
										
Output
												Team 1: Ben, Eve, Finn
Team 2: Dan, Cleo, Ana
											

When to use this

Physical-education classes form scrimmage teams, laboratory lessons fill benches to capacity, and workshops divide registrations among breakout groups.

Edge cases

  • Providing both team count and team size is rejected rather than letting one silently override the other.
  • Seven people across three teams produce sizes 3, 2, and 2 because cyclic dealing limits imbalance to one.
  • Seven people in teams of three produce 3, 3, and 1 because capacity mode does not redistribute the remainder.

References