To randomize a list, put one item on each line and press Shuffle. This tool uses the Fisher-Yates shuffle with your browser's cryptographic random number generator, so every possible order is equally likely. It can also pick winners with no repeats or split the list into teams of balanced size.
How do I use the list randomizer?
- Paste or type your items, one per line. Names, tasks, topics, questions, anything. The box starts with an example so you can see it work.
- Choose a mode: Shuffle list reorders everything, Pick winners returns a set number of items, Make teams splits the list into groups.
- Set the options: remove duplicates, ignore blank lines, number the output.
- Press Shuffle again as often as you like. The first result appears as you type, and each button press is saved to the history list.
- Copy the result or download it as a
.txtfile.
What can I use it for?
- Giveaways and raffles. Paste every entrant, pick the number of winners, and keep the history entry as a record of the draw.
- Classroom. Choose who presents first, who answers next, or split a class into groups without anyone feeling picked on.
- Teams. Five-a-side football, hackathon groups, pub quiz tables. Team sizes differ by at most one.
- Presentation and speaking order. Shuffle the agenda so the same person does not always go last.
- Study and work. Randomize flashcards, interview questions, code review order or a to-do list you keep avoiding.
A worked example
You have 10 entrants and want 2 winners. Paste the 10 names, choose Pick winners, enter 2. The tool shuffles the whole list and takes the first two, so the two winners are always different people. If you need runners-up, pick 5 instead: the order of the result is the order of the draw, so the third name is the first runner-up.
For teams, 10 people split into 3 teams gives sizes 4, 3 and 3. The tool deals names one at a time, team 1, team 2, team 3, team 1 again, which is why the sizes can never be more than one apart.
How does a fair shuffle work?
The method here is the Fisher-Yates shuffle, in the form Richard Durstenfeld published in 1964. Start at the last position in the list. Pick a random position from the start of the list up to and including that spot, and swap the two items. Move one position left and repeat until you reach the start. Each item ends up in each position with the same probability, so all possible orders are equally likely.
Two details matter in the code:
- The random pick must be uniform. A common shortcut is to take a random number and use the remainder after dividing by the list size. That favors small results unless the range divides evenly. With one random byte (0 to 255) and 6 options, 256 does not divide by 6, so results 0 to 3 occur 43 times and results 4 and 5 only 42. This tool draws 32-bit numbers and throws away any that fall in the uneven leftover range (rejection sampling), so no position is favored.
- The source of randomness matters.
Math.random()is fine for games, but MDN says it does not provide cryptographically secure numbers.crypto.getRandomValues()is the browser's secure generator, and it is what this page uses.
Why is sort(() => Math.random() - 0.5) a bad shuffle?
It looks like a neat one-liner, but a sort expects a comparator that gives the same answer every time it compares the same two items. A random comparator does not. The MDN documentation for Array.prototype.sort says that when a comparator breaks these rules, the program's behavior is not well-defined. In practice some orders appear more often than others, and the bias can change with the browser and the list length. Fisher-Yates avoids the problem entirely and takes about the same amount of code.
How does this compare with other ways to randomize?
| Method | Fair? | Notes |
|---|---|---|
Fisher-Yates with crypto.getRandomValues (this tool) | Yes | Every order equally likely, no modulo bias, fast on long lists. |
Fisher-Yates with Math.random() | Fair for casual use | Not designed for security, so avoid it where someone could profit from predicting the result. |
sort(() => Math.random() - 0.5) | No | Undefined behavior, uneven results, differs between browsers. |
Spreadsheet RAND() column, then sort | Yes in practice | Works well, but recalculates on every edit, so copy the result as values before you share it. |
| Names in a hat | If mixed well | Easy to show in person, slow for long lists, hard to prove afterwards. |
| Hardware or atmospheric random services | Yes | Needs a network call and an extra site. Overkill for most lists. |
Edge cases and limits
- One item or an empty list. There is nothing to reorder, so you get the item back, or a hint to add some.
- More winners than items. The count is capped at the size of the list.
- More teams than items. Extra teams stay empty.
- Duplicates. Kept by default, so an entrant who appears three times has three chances. Tick Remove duplicates to give everyone one entry.
- Emoji and non-Latin text. Each line is treated as a whole item, so emoji and accented characters stay intact.
- Randomness is not a promise of variety. A fair shuffle can leave an item in its original place, and can pick the same person in two separate draws. That is what random looks like.
Your list stays in your browser. Nothing is sent to a server, and the history is cleared when you close the tab.
Frequently asked questions
How do I randomize a list online?
Paste your items into the box, one per line, and the shuffled order appears straight away. Press Shuffle for a new order. Copy it or download it as a text file.
Everything runs in your browser, so the list is never uploaded.
Is this list randomizer really random?
Yes, for any practical purpose. It uses the Fisher-Yates shuffle with random numbers from your browser's cryptographic generator (crypto.getRandomValues), and it discards numbers that would favor some positions (rejection sampling).
Every possible order of your list is equally likely. Our test suite checks this by counting the orderings from tens of thousands of shuffles.
Can I use it to pick giveaway winners?
Yes. Choose Pick winners, set how many you need, and press Pick. Nobody can be chosen twice in one draw.
The history panel keeps the last results with a time, so you can show the order and when it happened. Check the rules of the platform you run the giveaway on, and any local rules on prize draws, because those are separate from how the pick is made.
How do I split a list into random teams?
Choose Make teams and set the number of teams. The tool shuffles the list and deals names out one by one, so team sizes never differ by more than one person.
With 10 people and 3 teams you get teams of 4, 3 and 3. Press the button again for a new split.
Why not just sort with Math.random()?
Because sort(() => Math.random() - 0.5) gives a comparator that contradicts itself, and the JavaScript documentation says the result of such a sort is not well-defined. Browsers differ, and in practice some orders come up more often than others.
Fisher-Yates is the same amount of code and has no such problem.
Can I get the same shuffle again?
No. Every shuffle uses fresh random numbers and there is no seed to replay. To keep a result, copy it or download it, or look in the history panel, which holds the last five.
How long can the list be?
There is no fixed limit. A 100,000-line list shuffled in about 50 milliseconds in our test. The practical limit is how much text your browser can show in a text box.
Does it remove duplicates?
Only if you tick Remove duplicates. The match ignores upper and lower case and extra spaces at the ends, so "Ann" and " ann " count as the same entry. With the box unticked, repeated lines are kept as separate entries, which is what you want for weighted draws.