List Randomizer: Shuffle Any List Into a Random Order

Paste one item per line and press Randomize. The list comes back in a random order where every arrangement is equally likely, ready to copy.

SchoolFreeNo sign-upWorks on phones
––
–Items in
–Items out
–Possible results

This tool runs in your browser. Nothing you type is uploaded or saved, and there is nothing to install or sign up for.

What a list randomizer is for

Any time an order has to be fair, a shuffle settles it faster than a discussion. Who presents first, which chore goes with which day, the running order for a talent show, the sequence of questions on two versions of a quiz: paste the list above, press Randomize and the same items come back in an order nobody chose.

The tool never adds, edits or loses an item unless you ask it to. With the default settings the output holds exactly what you typed, just rearranged.

How to shuffle your list

  1. Type or paste your items into Your list, one per line. Anything counts as an item: names, numbers, questions, song titles.
  2. Tick Number the result if you want each line to start with 1., 2., 3. and so on.
  3. Leave Remove blank lines ticked unless empty lines mean something in your list. Tick Remove duplicates to keep one copy of anything that appears twice.
  4. To draw a short list from a long one, type a number in Keep only the first N items.
  5. Press Randomize, then Copy result to take the new order with you.

Ticking or unticking the numbering, or changing N, does not reshuffle: it only changes how the current draw is shown. Press Randomize whenever you want a new one. Reset brings back the six sample colors.

A worked example: six colors, 720 orders

The page opens with six items: Red, Orange, Yellow, Green, Blue and Purple. The Possible results tile reads 720, because six different items can be lined up in 6 × 5 × 4 × 3 × 2 × 1 = 720 ways. Whatever order you see on screen is one of those 720, and each had the same 1 in 720 chance.

Now type 2 in Keep only the first N items. The output shrinks to the first two lines of the shuffled list and the tile changes to 30, since there are 6 choices for the first place and 5 for the second: 6 × 5 = 30. That is how you draw a winner and a runner-up, or two volunteers, from a longer list in one step.

How fast the number of orders grows

Items in the listPossible orders
36
424
5120
6720
840,320
103,628,800

The count is called a factorial and is written with an exclamation mark, so the last row is 10!. Past 18 items the exact figure no longer fits in a browser’s ordinary numbers, and the tile switches to a rounded value such as about 2.43 × 10^18 for 20 items.

The method: a Fisher-Yates shuffle

The mixing is done with an algorithm named after Ronald Fisher and Frank Yates. In plain words: start at the bottom of the list. Pick one line at random from the whole list and swap it into the bottom place. That place is now settled. Move up one line, pick at random from the lines that are not settled yet, swap, and repeat until you reach the top.

for i from last down to second: j = random whole number from first to i; swap item i with item j

Because each unsettled line has an equal chance at every step, no order is favored. A list of n items has n factorial orders and this method produces each with the same probability, provided the random numbers themselves are even.

That last condition is where quick home-made shuffles go wrong. This tool asks your browser’s cryptographic generator for each number and uses rejection sampling: when a raw value falls in the small leftover range that would make some positions slightly more likely, it is discarded and a new one is drawn. If a browser has no such generator, the built-in random function is used instead.

Limits and things that trip people up

  • A shuffle can return the order you started with. With six items that happens about once in 720 presses. It is not a bug; pressing again gives a new draw.
  • Repeats are counted as separate lines. The Possible results figure assumes every line is different. If Red appears twice, some of those orders look identical on screen.
  • Duplicate matching ignores capitals. With Remove duplicates ticked, apple and Apple count as the same item and the first spelling is kept. To clean a list without shuffling it, use the duplicate line remover.
  • One item per line. A comma-separated row is treated as a single item. Put each entry on a line of its own first.
  • Nothing is saved. Reloading the page clears your list and the draw.

A random order is fair, but it is still chance. For prize draws with real stakes, run the draw in front of the people involved so everyone sees the same result.

Classroom and study uses

Teachers use a shuffled roster as a presentation order or a line-up for the door, and a shuffled question list to make a second version of a worksheet. If you need the class split into groups instead of a single line, the random team generator does the dealing for you, and the random name picker draws one student at a time without repeats.

Students can shuffle a set of vocabulary words or exam topics so that revision does not always start with the same ones. Numbering the result turns it into a ready study schedule. To put a list back in order afterwards, paste it into the alphabetical order sorter.

When all you want is a number, not a rearranged list, the random number generator is the shorter route. Every other helper on the site is listed under free online tools, with the teaching ones grouped as school and classroom tools.

Frequently asked questions

How do I randomize a list?

Paste the list with one item per line and press Randomize. The items are returned in a random order, and pressing the button again gives a different one.

How many ways can 6 items be ordered?

720. There are 6 choices for the first place, 5 for the second and so on down to 1, and 6 x 5 x 4 x 3 x 2 x 1 is 720. Ten items have 3,628,800 orders.

Is every order equally likely?

Yes. The tool uses the Fisher-Yates shuffle with secure random numbers from your browser and discards values that would cause bias, so each possible order has the same chance.

Can I pick a few random items from a long list?

Yes. Type how many you want in Keep only the first N items. The list is shuffled and only the first N lines are shown, so picking 2 from 6 has 30 possible results.

Does the list randomizer remove duplicates?

Only if you tick Remove duplicates. Then items that match apart from capital letters are merged and the first spelling is kept. By default every line stays.

Is my list uploaded anywhere?

No. The shuffle runs in your browser and nothing is stored, so the list is gone when you close or reload the page.

Related tools

Browse all free tools →