How to make random teams fairly
Random teams work best when the rules are simple and visible. Decide whether you need a fixed number of teams or a fixed team size, shuffle once, and share the result clearly.
Use team count when the activity has fixed stations
If you have four tables, four breakout rooms, or four games running at once, split by number of teams. This keeps the activity structure stable and spreads people as evenly as possible.
Use team size when the activity needs small groups
If the task works best with pairs, trios, or groups of four, split by people per team. This is useful for classroom discussions, pair programming, practice drills, and workshop exercises.
Balance leftovers
Most real lists do not divide perfectly. If 19 people need 4 teams, the fairest result is usually three teams of 5 and one team of 4, not one large leftover group.
Reshuffle only for a clear reason
Random does not always feel fair. Agree on the rule before you shuffle. For example: one shuffle unless there is a duplicate, a missing person, or a known conflict that needs a manual adjustment.
Copy the result somewhere visible
After generating teams, paste the result into chat, a slide, a whiteboard, or a lesson plan so everyone can see the same grouping.