This page splits a roster into N groups in the current browser tab. Paste names in Items (one per line), set Number of Groups, and click Generate Groups. Empty lines are ignored. FlashKit does not upload the list, does not keep a draw history, and does not need an account. The default sample is eight names — Alice, Bob, Charlie, Dana, Eve, Frank, Grace, Heidi — and four groups. Refreshing the tab restores that sample and clears the cards.
Assignment is a Fisher-Yates shuffle followed by round-robin. The page copies the trimmed lines, walks i from the end to 1, and swaps each index with a random earlier index using Math.random(). Then it creates N empty arrays and pushes shuffled[i] into group (i mod N). With eight people and four groups you get two names per card. With eight people and three groups you get sizes 3, 3, and 2 — leftover names wrap around, they are not dropped. This is ordinary JavaScript randomness: fine for a classroom or a standup, not cryptographic and not a published tournament seed.
Worked example. Keep the eight sample names and 4 groups. Generate Groups. You should see Group 1–Group 4, each with two people. Click again and the pairing changes because the shuffle re-runs; previous cards are not stored. Worked example — 8 names and 3 groups: three cards, two of them with three people. If you type 9 groups with only eight names, the page shows “Cannot have more groups than items.” If Number of Groups is 0, empty, or not a number, it shows “Number of groups must be a positive number.” If the box is only blank lines, it shows “Please enter at least one item.”
Use this for lab pairs, classroom project teams, hackathon tables, lunch sides, or splitting a standup into breakout rooms. It is not a Swiss-system seeder, not a constraint solver, not a Secret Santa pairer, and not a way to lock two people apart. After the draw, swap names by hand if the room has a rule (“Alice and Bob cannot present together”). Duplicate lines are separate entries — writing Alex twice gives Alex two seats. There is no export button: copy the cards into a doc if the roster matters after you close the tab. For a single winner instead of teams, use the random name picker. For a running tally of scores, use TickCounter.
The UI matches this copy. Items is a wide textarea. Number of Groups is a number input (default 4). Generate Groups is the centre button. Result cards are titled Group 1, Group 2, … with a bullet list of names. There is no team-name field, no “people per group” mode (you pick how many groups, not how many people in each), no undo, and no localStorage. Related tools: random picker, TickCounter, GPA calculator, password generator. Related guides: split a class into random groups fairly (29 names into 7 or 8 groups) and the random team generator for sports and quiz-night sizes.
How to make random teams
- Paste the roster in Items, one name per line. Blank lines are skipped. The eight-name sample is only a demo.
- Set Number of Groups to how many teams you want. It must be a positive integer no larger than the name count.
- Click Generate Groups. Cards titled Group 1, Group 2, … appear with round-robin membership after a Fisher-Yates shuffle.
- Copy the teams into a doc if you need a record. Click again only if the room agrees to re-roll — the previous draw is not saved.
- Need one winner instead of teams? Open the random picker. Need a score tally? Open TickCounter.
Key Features
- Fisher-Yates shuffle plus round-robin into N groups
- Clear errors for empty lists, non-positive N, or more groups than names
- Uneven leftovers wrap (8 names / 3 groups → 3, 3, 2)
- Local only — no account, no draw archive, no constraint solver
- Pairs with the random picker, TickCounter, and GPA calculator
How the shuffle assigns groups
- Trim each line and drop empties. That list is the roster. Duplicates stay as extra seats.
- Fisher-Yates: for i from n−1 down to 1, swap i with a random index 0…i. Then push each name into group (index mod N).
- Group sizes differ by at most one. You cannot request “exactly 5 per team” — you request how many teams.
- Math.random is the engine PRNG. Informal use only. Do not seed a raffle, lottery, or ranked tournament from this page.
- Re-clicking always reshuffles. There is no “hold Group 1, reshuffle the rest.”
Common ways people use this group generator
- Classroom lab pairs or project teams without picking favourites at the whiteboard.
- Hackathon table assignment from a signup list pasted the morning of the event.
- Standup breakout rooms. Re-roll if the room agrees; screenshot if you already announced the teams.
- Sports or board-game nights. Swap one name afterwards if two people cannot be together — the tool will not enforce that.
- Need one volunteer instead of teams? Random picker. Need to count points after the game? TickCounter.
Number of groups versus people per group
- There is one control: Number of Groups. There is no “people per group” mode and no Secret Santa pair generator.
- Want groups of about five from 23 names? Type 5 groups. Round-robin yields 5, 5, 5, 4, 4 — leftovers wrap; nobody is dropped.
- Want four teams from 23 names? Type 4 → sizes 6, 6, 6, 5. For pairs, set groups to about half the roster; an odd leftover makes one group of three.
- Classroom: 29 students and 7 lab tables → 5, 4, 4, 4, 4, 4, 4. The extra student wraps onto Group 1.
- Copy the cards if you already announced the teams. Re-clicking is a new shuffle, not an undo.
| Names | Groups you type | Sizes you get |
|---|---|---|
| 23 | 4 | 6, 6, 6, 5 |
| 23 | 5 | 5, 5, 5, 4, 4 |
| 8 | 3 | 3, 3, 2 |
| 29 | 7 | 5, 4, 4, 4, 4, 4, 4 |
Grouping tool for teachers, teams, and workshops
- Teachers splitting a class: paste the register, one name per line, set Number of Groups to the lab tables or project teams you actually have, then Generate Groups. Uneven leftovers wrap onto the first groups — nobody is dropped.
- Team balancing after the shuffle: this grouping tool does not mix skill, gender, or talkative vs quiet. If two students cannot sit together, swap one name on the cards. That is the whole “balance” step.
- Number of groups vs people per group: there is one control. Want about five per group from 23 names? Type 5 groups (sizes 5, 5, 5, 4, 4). Want four teams? Type 4 (6, 6, 6, 5). There is no people-per-group mode.
- A group randomizer / random group picker / group maker on this page always returns N labelled cards, not a single winner. For one volunteer, open the random picker.
Limits, fairness, and tips
- No “keep these two apart,” no gender/skill balance, no named captains. Edit the cards after the draw.
- More groups than names is rejected. A group count of 1 puts everyone in Group 1 (still shuffled, still one card).
- Previous draws are not stored. Do not refresh after you promised the room a result.
- Privacy: the roster never leaves this tab. Still avoid pasting a confidential HR list on a projector.
- Related guides: strong passwords when randomness must be a secret; developer productivity for classroom/lab workflow.
Frequently Asked Questions
What is this grouping tool / group generator?
A random group generator: paste names, set how many groups, click Generate Groups. Fisher-Yates shuffle then round-robin into N cards. Local in this tab — not a skill balancer, not a Secret Santa pairer, not a tournament seed. Math.random() is the draw: fine for a class, not cryptographic.
How do I create groups from a list of names?
Paste one name per line in Items, type Number of Groups, click Generate Groups. Blank lines are skipped. With more groups than names you get an error. Copy the cards if you need a record — there is no undo or export; re-clicking is a new shuffle.
Is this a group randomizer, group maker, or random group picker?
Group randomizer and group maker, yes: everyone is assigned to N labelled cards. A single-winner random group picker is the random name picker on this site, not this tool. For pairs, set groups to about half the roster; an odd leftover makes one group of three.
Can I lock two people apart or together?
Not as a constraint. Shuffle, then swap names on the cards. The page only does Fisher-Yates plus round-robin.
What if I have leftover people?
They wrap. 8 names and 3 groups become sizes 3, 3, and 2. Nobody is dropped. There is no people-per-group mode: for about five per group with 23 names, type 5 groups (sizes 5, 5, 5, 4, 4). You cannot have more groups than names.
Is the roster uploaded?
No. The textarea and the shuffle stay in this tab. Refreshing restores the eight-name sample and clears the cards.