List Randomizer

The shuffle draws its randomness from the Web Crypto API - crypto.getRandomValues per the MDN reference - the same cryptographic source browsers reserve for tokens and keys. That matters for shuffles because a biased source favors certain orderings: fair shuffling needs unbiased random numbers at every swap step, which is exactly what the cryptographic provider guarantees and what Math.random only approximates.
    MethodFair?Known drift
    sort(random) one-linernofirst item stays put ~37% in Chrome (fair: 33.3%)
    Fisher-Yates (this tool)yesevery order exactly 1-in-n!
    server draw servicesyesfair, but your list leaves the browser and may queue
    Why the famous one-liner is unfair: Array.prototype.sort expects a consistent comparator, and a random one feeds it contradictions it resolves in whatever order it happens to visit pairs - the result is measurably biased toward leaving items near where they started. The Fisher-Yates pass instead touches each item exactly once, swapping it with a uniformly drawn pick from what remains, which is why every one of the n! orderings is equally likely. Reference implementation: Fisher-Yates Shuffle, Mike Bostock.
    Randomness source: the shuffles use crypto.getRandomValues, the browser's cryptographic random generator - the same primitive behind this site's coin flip and dice roller. Drawing winners? Set draw top N, shuffle once, and the highlighted lines are your winners with built-in alternates below them; the team generator is the one to reach for when everyone must be placed into balanced groups, and the random number generator covers numeric ranges.

    Paste one item per line, hit Shuffle, and the whole list is reordered with a Fisher-Yates shuffle driven by your browser's crypto random source - the same algorithm casinos-grade PRNG discussions recommend, and the one this site uses for its coin flip and dice roller. Set 'draw top N' to 3 and the first three lines highlight as winners: one tool covers raffle draws, random seating, presentation order and who-goes-first.

    One habit to unlearn: sorting an array with a random comparator (the sort(() => Math.random() - 0.5) one-liner) does not produce a fair shuffle. Measured in Chrome, it leaves the first item near its original position about 37% of the time instead of the fair 33% - small bias, real bias. The Fisher-Yates pass used here gives every permutation exactly the same 1-in-n! probability, and it runs locally: no paste leaves your browser, unlike draw services that queue your list on their server.

    How to use

    1. Paste your list - one entry per line, order does not matter.
    2. Optionally set draw top N: leave 0 to shuffle everything, or set 3 to highlight three winners.
    3. Hit Shuffle as many times as you like, then Copy list to take the result anywhere.

    Frequently asked questions

    How do I pick raffle winners from a list?

    Set draw top N to the number of winners, shuffle once, and the first N lines are highlighted as the draw result - the rest of the list keeps its shuffled order so you have instant alternates if a winner declines. For a re-draw, just hit Shuffle again; each pass is an independent, uniformly random permutation.

    Is this randomizer fair enough for a real contest?

    The shuffle is Fisher-Yates driven by crypto.getRandomValues - the browser's cryptographic random source, the same primitive behind key generation - so every ordering is equally likely and neither the order you paste nor your hardware biases the draw. What it cannot fix is process trust: for a contest where entrants must believe the draw, screen-record the shuffle or draw live.

    Can I shuffle numbers, tasks or songs?

    Anything you can put on a line gets shuffled: names, numbers, song lists, chore rosters, study questions. The tool treats each line as an opaque item and never reorders inside a line, so '3. Door prizes' stays exactly as you typed it.

    What is the difference between this and the team generator?

    The team generator splits a list into N balanced groups - everyone gets placed, groups stay roughly equal. This tool orders the whole list - every item gets a rank, and drawing top N picks winners. Use the team generator for dividing labor, this one for ranking and drawing.

    Related tools