Skip to content

Shuffle Lines

Randomise the order of a list, fairly and repeatably.

Quick Tool Overview

Shuffle Lines randomises the order of a list with a fair Fisher-Yates shuffle, and can draw a random subset from it — which is a prize draw or a sample. Duplicates can be removed first so every entry has an equal chance.

What it does
Randomises list order and draws random subsets
You give it
A list with one entry per line
You get back
The shuffled list, numbered, or a drawn sample
Best for
Running orders, draws, sampling and test case ordering
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Shuffle Lines

Randomising a list is the fair way to settle an order — who presents first, which name is drawn, what sequence a set of test cases runs in. Doing it by hand is not random, and doing it in a spreadsheet with a random column is more work than it should be.

This shuffles the lines of a list using Fisher-Yates, which produces a genuinely uniform result. It can also draw a random subset — the first five of the shuffled list — which is a prize draw or a sample. Blank lines can be dropped, duplicates removed before the shuffle, and each result is numbered so the order is easy to read out.

Key features of the Shuffle Lines

Draw a subset

Take the first few of the shuffled list, which is mathematically identical to drawing them at random.

De-duplicate before drawing

A name entered twice would otherwise have twice the chance, so repeats can be removed first.

Numbered output

The shuffled order is numbered, which makes it easy to read out or work through.

Uniform shuffle

Fisher-Yates gives every order an equal chance, which a random-key sort does not.

Nothing recorded

The list and the result exist only in the page, so copy anything you need before shuffling again.

How to use the Shuffle Lines

  1. 1

    Paste your list

    One item per line — names, tasks, entries or test cases.

  2. 2

    Clean it first if you need to

    Drop blank lines and remove duplicates so every entry has an equal chance.

  3. 3

    Shuffle

    Press shuffle for a fresh random order; press again for another.

  4. 4

    Draw a subset if you want one

    Set how many to pick and the tool shows just that many from the top of the shuffled list.

Frequently asked questions

The shuffle itself is uniform — Fisher-Yates driven by the browser's random number generator gives every order an equal chance. For anything with legal or financial weight, use a process that can be audited, since nothing here is recorded.

Reviews of the Shuffle Lines

What people who use the Shuffle Lines think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Shuffle Lines. It takes half a minute and no account.

Write the first review

More text tools