At One Place

Shuffle lines

Randomly reorder a list of lines, using a proper unbiased shuffle.

How it works

Reorders pasted lines at random. Useful for randomising a draw order, a playlist, a question bank, or picking a winner from a list of names.

This uses a Fisher–Yates shuffle driven by the browser’s cryptographic random number generator. That matters more than it sounds: the obvious way to shuffle a list — sorting it with a random comparator — produces a measurably biased result, with some orderings far more likely than others. Fisher–Yates gives every permutation equal probability.

Because randomness is genuine, results will sometimes look unshuffled. A few items staying near their original position is expected, not a bug.

This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.

Common questions

Is this properly random?
Yes. It uses a Fisher–Yates shuffle with the browser’s cryptographic random number generator, so every possible order is equally likely.
Why did some lines barely move?
Because the shuffle is genuinely random. Real randomness produces runs and near-misses; a result that always looks thoroughly mixed would be the suspicious one.

Related pages