Last updated ·Published ·By the WiserWork team
Line Shuffler
Randomize the order of pasted lines with a true Fisher-Yates shuffle
Reorders every line of pasted text into a fresh random sequence using the Fisher-Yates shuffle, the same unbiased algorithm used to shuffle a deck of cards in software, with an optional seed for repeating an exact shuffle later.
What is the Line Shuffler?
Sorting tools put lines in a predictable order — alphabetical, numeric, by length. This tool does the opposite: it takes the order out entirely. Each click walks the list from the last line to the first, swapping every line with a randomly picked line from the portion not yet visited. That single pass, known as Fisher-Yates, guarantees every possible ordering of your list has an equal chance of appearing, unlike naive approaches such as sorting by a random number, which subtly favor some orderings over others.
Key Features
- A genuine Fisher-Yates shuffle, not a sort-by-random-key approximation
- Optional seed field that makes a shuffle reproducible on demand
- Remove empty lines before shuffling with one checkbox
- Live line counts on both the input and the shuffled output
- One-click copy of the shuffled result
Common Use Cases
- Drawing a random presentation, interview or turn order from a list of names
- Shuffling flashcards, quiz questions or practice problems typed one per line
- Randomizing the order of raffle entries or giveaway participants before a draw
- Mixing a playlist, reading list or task list so the same items do not always appear first
How to Use the Line Shuffler
- Paste your list into the Input Lines box, one item per line.
- Tick Remove empty lines first if your paste has stray blank lines.
- Turn on Use a repeatable seed and type any word or phrase if you need the same order again later.
- Click Shuffle Lines to generate the randomized order in the output box.
- Press Copy to take the shuffled list to your clipboard.
Tips for Best Results
- Click Shuffle Lines again for a brand-new order — without a seed, every click draws fresh randomness.
- The same seed with the same input always produces the same order, which is useful for a repeatable classroom exercise or a shuffle you need to justify later.
- Blank lines count as list items unless you remove them first, so a stray empty line can end up anywhere in the result.
- This shuffle is not cryptographically secure; it suits informal draws and ordering, not regulated lotteries.
Why Use WiserWork's Line Shuffler?
Plenty of tools claim to shuffle a list but quietly sort by a random tag instead, which biases the outcome in ways that are hard to notice. This page runs the textbook Fisher-Yates algorithm so every ordering is genuinely equally likely, and it adds a seed option for the times you need to reproduce a specific shuffle rather than draw a new one. Your list is shuffled locally in the browser and never leaves your device.
Who Uses the Line Shuffler?
Teachers and trainers shuffle question banks and student call orders. Event organizers randomize speaker or performer line-ups. Developers and QA testers use the seed option to generate a reproducible randomized order for test fixtures.
Frequently Asked Questions
How is this different from the Text Sorter's Randomize button?
They run the same Fisher-Yates algorithm, but this page is built around shuffling alone: no sort buttons, no case options, just an input, a shuffle button and a seed for reproducing a specific order. Reach for the Text Sorter when you also need alphabetical or numeric ordering on the same list.
What exactly is a Fisher-Yates shuffle?
It is an algorithm that walks the list from the last item to the first, swapping each one with a randomly chosen item from the portion not yet shuffled. Done correctly, every possible ordering of the list is equally likely, which is why it is the standard choice over sorting by a random key.
Can I get the same shuffle again later?
Yes, if you turn on the seed field. Typing the same seed with the same input lines reproduces an identical order every time, because the seed replaces the browser's normal unpredictable random source with a repeatable one.
Does shuffling remove blank lines or duplicates?
Only if you tick the Remove empty lines option first. Duplicate lines are left alone by design, since a shuffle is about order, not content, and removing repeats could change which line ends up representing a repeated entry.
Is Math.random good enough for a raffle or contest draw?
For an informal drawing order, presentation order or study shuffle, yes. It is not a cryptographically secure source, so avoid it for anything where the outcome must be provably tamper-proof, such as a regulated lottery.
Can I shuffle just a portion of a list and leave the rest fixed?
Not directly. Shuffling always applies to every line currently in the input box. To fix part of an order, remove those lines before shuffling, then paste them back into the result at the position you want.
Why does clicking Shuffle again give a different order than last time?
Without a seed, every click draws fresh randomness, so back-to-back shuffles of the same input produce different orders on purpose. Turn on the seed option if you need the same click to always produce the same result.
A shuffle is only fair if every ordering had an equal chance, which is exactly what Fisher-Yates guarantees. Paste a list, click once, and copy out a genuinely random order — or a reproducible one, if you turned on a seed.