Random group generator
Split a roster into random groups with a reproducible seeded shuffle, avoid-pairs, keep-together pairs and attribute balancing, plus automatic size balancing and one-click reshuffle.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
One member per line; an optional attribute after a comma or tab (team, gender, skill level) drives attribute balancing. Attributes can be omitted.
Grouping result
Produced by a seeded PRNG shuffle and ready to copy; unsatisfiable constraints are reported below.
Enter a roster to see the groups
What this tool does
- Split a room on the spot for a workshop or ice-breaker: six people into three teams, change the seed to reshuffle
- Group a class or discussion set while keeping required partnerships together and specific pairs apart
- Balance teams by department, gender or skill level for competitions instead of stacking one team with the same group
Example
Input
Alice,Eng Bob,Eng Carol,Mkt Dave,Mkt Erin,Ops Frank,Ops
Output
Group 1 (2 people): Bob, Dave Group 2 (2 people): Frank, Carol Group 3 (2 people): Erin, Alice Seed: 20261013 (the same seed and roster reproduce this grouping)
Default seed 20261013 with three groups: two people per group, each with two different attributes. Change the seed to reshuffle.
Frequently asked questions
How is the randomness produced?
A built-in mulberry32 seeded PRNG drives a Fisher–Yates shuffle. The seed defaults to 20261013 and is shown in the result, so the same roster plus the same seed always yields the same grouping and you can re-check a screenshot later. Use another seed (or the Reshuffle button) to shuffle again.
How do I write keep-apart and keep-together pairs?
One pair per line joined by a hyphen, for example "Alice-Bob"; separate multiple pairs with newlines or semicolons. Keep-together pairs are merged with union-find before assignment, so they can never be split. Keep-apart pairs are assigned first and then repaired by swapping members with other groups while keeping sizes and attributes balanced; the number of swaps is reported in the stats.
What happens when the constraints contradict each other?
If the same pair is required both to stay together and to stay apart, or if keep-together leaves too few clusters to fill the requested group count, the tool does not pretend to succeed: the first case lists the unsatisfied pairs under the result, the second fails with "keep-together constraints leave too few clusters".
What does attribute balancing do?
The optional second column (team, gender, skill level …) becomes the attribute, and the assignment spreads members with the same attribute across groups. The "max attribute skew" stat is the largest per-group difference for any attribute. Group sizes always end up within one person of each other, but keep-together constraints can make perfect attribute balance impossible, in which case the real skew is shown.
Is the roster uploaded?
No. Grouping runs entirely in your browser; the page makes no network requests and keeps no account or cloud record.
Keywords:random group generatorseeded shuffle