For a draw to be fair, the winner has to come from a cryptographic random generator, not from Math.random(). The random list picker does that in your browser, and the list is never sent to a server.
You're running a giveaway among followers or event participants and need a result nobody can reasonably question. "Random" sounds simple, but not every method for generating random numbers is equally impartial, and the difference matters when there are prizes at stake.
Why not all "randomness" is equally reliable
Math.random() is a pseudo-random generator: its sequence looks random, but it comes from a deterministic algorithm. MDN states that it does not provide cryptographically secure numbers, should not be used for anything security-related, and recommends the Web Crypto API (Math.random() on MDN). For casual use that is fine. For a draw with real prizes, use crypto.getRandomValues, which fills an array with cryptographically secure random numbers (crypto.getRandomValues() on MDN).
How to run a random drawing
- Paste the list of participants, one per line. Blank lines are ignored, but a name that appears twice counts as two entries.
- Press Draw. Each press picks a winner at random with
crypto.getRandomValues. - Repeat for each prize. The "Remove winner after drawing" switch is on by default, so the winner leaves the list for the next draws.
Why "no repeats" is a detail worth getting right
When several prizes are handed out, a common mistake is letting the same participant win more than one. That is almost never the intent unless you say otherwise. The "Remove winner after drawing" switch is on by default and takes each winner out of the remaining draws, so every participant wins at most one prize. If you turn it off, anyone can be picked again.
Why this matters for the perception of fairness
A draw with real prizes (money, products, recognition) can spark disputes if a participant suspects the result wasn't random. A cryptographic generator and a process with no manual choices give a solid basis against that suspicion. To keep a record, take a screenshot of the list and the result at the moment of the draw.
Real use cases
- Social media giveaways among followers who have met a participation condition.
- Internal raffles or lotteries at events, companies or communities.
- Random assignment of tasks or shifts among a group of people, fairly.
- Selecting a case study or sample at random from within a dataset.
Frequently asked questions
Why is it better than a normal random number generator? It uses crypto.getRandomValues, the browser's cryptographic API, and avoids modulo bias by discarding values outside the valid range. Math.random() gives no such guarantee.
Can I give out several prizes without a winner repeating? Yes. The "Remove winner after drawing" switch is on by default. Turn it off only if the same participant may win more than once.
Is my participant list saved on any server? No. The draw runs in your browser and the list is not sent to any server.
Can I verify the draw was fair afterwards? The tool does not produce a certificate or a downloadable record, and the draw history clears when you reload the page. Save a screenshot of the list and the result.
Pick a random winner fairly with the random list picker: the browser's cryptographic randomness and prize distribution with no repeats.