How the Random Name Picker Works
Paste a list — one name per line, or separated by commas — and the picker first tidies it: blank entries are dropped and exact duplicates are removed, with a note telling you how many went. That cleaning step matters more than it looks. A name pasted twice by accident would otherwise silently double that person's chances.
When you press Pick a Winner, the picker performs a partial Fisher–Yates shuffle: it swaps each winning slot with a position chosen uniformly at random from the names not yet placed, using random indexes from the browser's cryptographic generator (explained in Why Cryptographic Randomness Is Fairer below). The winners are decided the moment you press the button; the shuffle animation that follows is purely for suspense — the outcome is already fixed before the first name flashes by.
With Remove winners from the pool switched on — the default — each winner leaves the pool, so pressing Draw Again runs the next draw from whoever is left. That is how raffles, prize ladders and classroom cold-calling usually want to work. Switch it off and every draw starts again from the full list.
How to Run a Fair Draw or Raffle
A draw is fair long before anyone presses a button. Most disputes about raffles and giveaways are really disputes about the list and the rules, not the random number. Five habits keep a draw clean:
- Fix the entry list first. Close entries, paste the final list, and check the name counter on this page against your expected total before drawing.
- State the rules out loud (or in writing) before the draw: how many winners, whether winners are removed, and what happens with duplicate names.
- Draw once, in the open. Project the screen, share it on a call, or draw in front of a witness. The animation exists partly for this — everyone can watch the draw happen.
- Accept the result. Redrawing because you dislike the winner is the one move that makes any draw unfair, however good the randomness is.
- Keep the record. Use Copy Winners or Save Results so the entry count, settings and winners are written down while everyone still remembers the draw.
Random Name Picker for the Classroom
Teachers use name pickers because cold-calling by hand is never as random as it feels — we all have names our eyes land on first. Paste the class list once at the start of term and draw for questions, reading aloud, presentation order, line leaders and classroom jobs.
Raffle mode (winners removed) is the setting that makes it feel fair to students: the picker works through the whole class before anyone is chosen twice, so "it never picks me" and "it always picks me" both stop being true. Project the draw and the shuffle animation does the persuading — the class can see there is no hand on the scale. And because the list never leaves your browser, a class list on this page stays on your device, which is where it belongs.
Running a Giveaway: Rules That Keep It Fair
For a social-media or customer giveaway, the picker handles the draw — the rules around it are yours to publish, ideally before entries open:
- Eligibility and deadline: who can enter, and the exact moment entries close.
- One entry per person: this picker removes exact duplicate names automatically, but the same person entering under two spellings is a rules problem, not a maths problem — say in advance how you will handle it.
- The prize and the number of winners: stated up front, and matched by the winners-per-draw setting you actually use.
- A record of the draw: save the winners file this page produces, with the entry list, so the result can be shown to anyone who asks.
Prize promotions are regulated differently in different places, and some platforms have their own giveaway rules on top. This guide is general information about running a fair draw, not legal advice — if a promotion is large or commercial, check the rules that apply to you.
Why Cryptographic Randomness Is Fairer
Computers cannot flip coins; they generate sequences of numbers that look random. The question is how well. Math.random(), JavaScript's built-in generator, is a pseudo-random generator designed to be fast and convenient. It was never designed to be unpredictable — with enough outputs, its future sequence can in principle be worked out — and nothing about it is checked for draw-grade uniformity.
crypto.getRandomValues() is different in kind: the browser fills the values from the operating system's cryptographic entropy source — the same well of randomness used to generate security keys. It is unpredictable and uniformly distributed, which is precisely what a fair draw needs.
There is one more subtlety, and this picker handles it: turning a big random number into an index with a plain remainder ("modulo") can bias small lists by a hair, because 232 does not divide evenly by most pool sizes. Rejection sampling fixes it: values in the small uneven remainder zone are thrown away and redrawn, so every index has exactly the same probability. On a class list the bias would be invisible — but fair is fair, and the fix costs a fraction of a millisecond.
Your List Stays Private
Everything on this page happens in your browser. Your names are not uploaded, not stored on a server, and not shared — there is no account and no database behind the picker. Refresh or close the page and the list is gone. That makes the tool safe for the lists people actually draw from: students, employees, customers and entrants, none of whom agreed to be uploaded to a random website.
Sources & References
- MDN Web Docs — Crypto.getRandomValues(): the Web Crypto method this picker uses for draw indexes, documented as cryptographically strong random values — developer.mozilla.org — Crypto.getRandomValues()
- MDN Web Docs — Web Crypto API: the browser API providing cryptographic primitives, including a cryptographically strong pseudo-random number generator — developer.mozilla.org — Web Crypto API
- MDN Web Docs — Math.random(): documented as not providing cryptographically secure random numbers, and not to be used for anything security-related — the contrast this page's guide draws on — developer.mozilla.org — Math.random()
This picker and guide are for fair, friendly draws — classroom picks, raffles, team selection and giveaways. For regulated or commercial prize promotions, check the rules that apply in your area; this page is general information, not legal advice.