RandomBasis

Teams, groups and order

Random Team Generator

Paste a list of names and split it into balanced random teams — or shuffle the order and pick winners.

Runs locally in your browser. Nothing you paste is ever sent to a server.

Your list — one name per line

What to do

Split by

About this random team generator

Paste any list of names, one per line, and this tool splits it into random teams for you. It is also a list randomiser and a random group generator: the same list can be shuffled into a random order, or used to draw winners. Everything runs in your browser, so a class register or a staff list never leaves your device.

Splitting a list into random teams

Choose how many teams you need and the list is shuffled first, then dealt out one person at a time. Dealing after a shuffle is what keeps the teams even: with 23 people across 4 teams you get three teams of six and one of five, and no group is ever more than one person larger than another. Because the shuffle comes first, being early or late in your pasted list gives nobody an advantage.

Groups of a fixed size

Sometimes the group size matters more than the number of groups — pairs for an exercise, tables of four, squads of five. Switch to "People per team" and set the size; the tool makes as many full groups as it can and puts the remainder in the last one. This is the mode to use for a random group generator when the room or the activity fixes how many fit together.

Shuffling a list into a random order

The shuffle mode returns your whole list in a random, numbered order without splitting it. It suits presentation slots, running orders, turn order in a game, or any time you need a random order generator that treats every arrangement as equally likely.

Picking winners from a list

Pick winners draws a set number of entries at random, and never draws the same entry twice. Every name has exactly the same chance, which is what makes it usable for a raffle, a giveaway or choosing who answers next.

Common uses

How the randomness works

The list is shuffled with a Fisher-Yates shuffle, the standard method that gives every possible arrangement an equal chance. The random values that drive it come from your browser's cryptographic random source through the Web Crypto API, and values that would fall outside a clean multiple of the range are discarded and redrawn so no position is quietly favoured. Blank lines are ignored, entries are trimmed, and repeated names are merged unless you switch that off.

How do I split a list of names into random teams?

Paste the names into the box, one per line, choose how many teams you want, and press Generate. The list is shuffled first, then dealt out so the teams come out as even as possible.

Are the teams the same size?

As even as the numbers allow. With 23 people across 4 teams you get three teams of six and one of five — the sizes never differ by more than one.

Can I make groups of a fixed size instead?

Yes. Switch from "Number of teams" to "People per team" and set the size you want. The last group holds the remainder if the list does not divide evenly.

Can I shuffle a list without splitting it?

Yes. Choose the Shuffle order mode and the whole list comes back in a random order, numbered, which suits running orders, presentation slots and turn order.

Can I use it to pick a winner?

Choose Pick winners and set how many. Every entry has an equal chance and no one is drawn twice, so it works for raffles and giveaways.

Is the draw actually random?

Yes. The list is shuffled with a Fisher-Yates shuffle driven by your browser's cryptographic random source, so every arrangement is equally likely and nothing you paste ever leaves your device.