Random Team Generator
Paste a list of names, choose how many teams or how many people per team, and press Make teams. Good for a class, a pickup game or a raid night. Your groups stay in this browser.
https://flxcode.com/random-team-generator/
People in this group
Nobody yet. Type or paste names above, one per line, then press Add names.
Skill is 1 (low) to 5 (high). A person with no skill counts as 3. Up to 300 people.
Advanced: shortcuts when pasting
A pasted list can carry the settings, after a name and in any order. Up to 300 people.
Ana *4sets skill 4.Ben @tanksets the role tank.Cy !makes Cy a captain.
Keep together or apart
Advanced: rules as text
Ana + Ben keeps them on one team. Cy / Dan puts them on different teams. Three names with / are all apart from each other.
The names changed. Press Make teams to use them.
Your teams show here. Press Make teams.
Drag a name to another team, or tap a name and then Move here. On a keyboard, focus a name and press the left or right arrow. A name you move stays on that team when you shuffle again. The padlock does the same.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
How to use it
- Type or paste names in the Add names box, one per line or separated by commas. A column copied from a sheet works. Press Add names and each person gets a row. The line under it says what split you will get.
- Set skill, role or captain on a row if you want them. Pick Teams or People per team, set the number with the buttons, and press Make teams.
- Not happy with it? Shuffle again. Rename a team by clicking its name. Drag a name to another team, or tap it and press Move here.
- Shuffle again and Copy as text stay at the top while you scroll the teams. Download a PNG or a CSV, or press Present to fill the screen with the teams for a projector.
Shuffle again, Delete group and each manual move show an Undo button for 8 seconds instead of asking first.
Skill, roles, captains
Each person in the list has a Skill menu, a Role box and a Captain button. They do nothing until you tick the matching option under Split into.
- Balance by skill: the highest skill is placed first. Example: Ana 5, Ben 5, Chloe 3, David 3, Eli 1, Fay 1 into 2 teams gives 9 and 9 skill (Ben 5, Chloe 3, Eli 1 against Ana 5, David 3, Fay 1). Totals stay within the highest skill value in the tests, and are usually much closer.
- Spread roles: each role is shared out as evenly as it can be, so 3 goalkeepers on 3 teams are one each. Roles come before skill totals when both are on.
- Captains first: each team gets one captain, and captains are listed first. Fewer or more captains than teams is reported.
- Fun team names: plain animal and colour names such as Red Foxes. You can still edit every name.
Together and apart
Open Keep together or apart, pick Keep together or Keep apart, choose two people and press Add rule. Remove takes a rule away. Keeping Ana with Ben and Chloe apart from David, with 4 people on 2 teams, gives, for example, Ana and Ben against Chloe and David. People who must be together are placed as one block. If the block is bigger than a team, or the rules fight each other, the page lists what it could not do.
How the shuffle works
The page uses a Fisher-Yates shuffle with numbers from crypto.getRandomValues. A plain "random number modulo n" slightly favours some positions, so draws that would do that are thrown away (rejection sampling). With no options on, every way to split the names into teams of the chosen sizes is equally likely. The node tests count 6000 splits of 4 people into two pairs and check that all 6 come up equally often.
With skill, roles or rules the result is not uniform, on purpose. Those options pick the fairest split among random starts.
Ideas
- Class: one group per class, People per team 4, Present on the board.
- Pickup football: skill 1 to 5, Spread roles with the role goalkeeper, Download PNG for the group chat.
- Game night or raid: roles tank, healer and dps, Spread roles on.
- Team lead: Keep apart for two people who always take the same side, captains for a retro.
Limits
- Up to 300 people and 50 teams.
- A name cannot contain a comma or a semicolon, and a name with + or / cannot be used in a rule.
- Pasted lists can carry settings after a name:
Ana *4 @tank !sets skill 4, the role tank and captain. The rows then show them as normal values. It is under Advanced: shortcuts when pasting. - On a phone, drag starts after you press and hold a name for a moment. Tap and Move here works without it.
- The balance is a good split, not a proven best one.
Names, skills and rules stay in this browser. We count events without cookies and never send what you typed (details). Sources: Legal.
FAQ
Is the split really random?
Yes. It uses crypto.getRandomValues, the random source browsers use for keys and passwords, with a Fisher-Yates shuffle and rejection sampling so with no skill, role or rule options on, no split is more likely than another. With options the result is not uniform, on purpose. The tests check this with a chi-square test on small cases. Shuffle again gives a new split each time.
What if the people do not divide evenly?
Teams differ by at most one person. Ten people in 3 teams is 4, 3, 3, and which teams get the extra person is random. With "People per team" the number of teams is rounded up and the people are spread evenly, so 10 people at 4 per team give 4, 3 and 3, not 4, 4 and 2.
How do I make the teams fair by skill?
Set a skill from 1 (low) to 5 (high) in the Skill menu on each person, and tick Balance by skill. People with the highest skill are placed first, each on the team with the lowest total, and then loose people are swapped while that brings the totals closer. A person with no skill counts as 3. The totals show on the cards.
Can I keep two people together, or apart?
Open Keep together or apart and write "Ana + Ben" to keep them on one team, or "Cy / Dan" to put them on different teams. If a rule cannot be kept, for example 4 people kept apart on 3 teams, the page says which one and still makes the best split it can.
How do I keep one person on a team and shuffle the rest?
Press the padlock next to a name. When you shuffle again, locked people stay and everyone else is mixed. A person you drag to another team is locked there on its own. A team with more locked people than its fair size grows, and the others shrink.
How do I move someone by hand without a mouse?
Focus a name with Tab, then press the left or right arrow to send it to the previous or next team, and up or down to move between names. On a phone, tap a name and then Move here on the team you want, or press and hold a name and drag it.
More from FLXCode
- Spin the WheelType names or choices, spin, get one at random. Weights, no-repeat draws, saved lists, fullscreen, sound themes.
- Multiple timers and stopwatchesMany named timers and stopwatches on one page. Colours, saved sets, alarms, right time after closing, CSV export.
- Word ScramblerMix up the letters of a word, a list or a sentence. Keep first or last letters, keep capitals. In your browser.
- Dice RollerRoll d4 to d100 or type notation like 4d6kh3. Advantage, exploding dice, saved rolls, history and the exact odds.