Guide

THE TOOLBOX / RANDOMIZERS & GAMES

Random Number Generator
with lottery picker, dice & coin flip.

Generate truly unbiased random numbers using your browser's cryptographic entropy (Web Crypto CSPRNG). Pick unique raffle numbers, decimals, Powerball or Mega Millions lines, tabletop dice, or fair coin flips—100% locally.

CSPRNG · UnbiasedPress Space to roll
42
Quick ranges:

HOW FAIR RANDOMNESS WORKS

Cryptographic randomness without modulo bias

1. Web Crypto CSPRNG Entropy

Standard JavaScript Math.random() is a predictable pseudo-random generator. This tool draws 32-bit values from crypto.getRandomValues(), backed directly by your operating system's cryptographic entropy pool.

2. Rejection Sampling for Exact Uniformity

When mapping a 32-bit integer onto a range like 1–100, naive val % range slightly favors smaller numbers. Rejection sampling discards values above the largest clean multiple of your range so every outcome has mathematically identical odds.

3. Duplicate-Free Draws & Raffles

Enable No duplicates for giveaways, classroom cold-calling, or sampling without replacement. Toggle Sort ascending to read ticket lists cleanly, and press Spacebar anywhere on the page to re-roll.

4. Built-in Lottery, RPG Dice & Coin

Switch tabs for instant Powerball, Mega Millions, EuroMillions, and 6/49 quick picks; polyhedral D4–D100 dice with Advantage/Disadvantage; or batch 10× / 100× coin flips with live heads/tails distribution tracking.

Related Random & Selection Tools

Need to pick a winner from a list of names or generate secure keys? Try our Random Wheel Spinner for visual prize wheels, or our Cryptographic Password Generator for high-entropy credentials.

Frequently Asked Questions

Is this random number generator truly unbiased?

Yes. Unlike basic tools that rely on Math.random() with modulo division (which introduces slight modulo bias), this generator uses your browser's Web Crypto API (crypto.getRandomValues) combined with rejection sampling so every integer in your chosen range has an exact, equal probability.

How do I generate multiple unique random numbers without duplicates?

Set your Minimum and Maximum bounds, enter how many numbers you need (up to 500), and keep 'No duplicates' checked. The engine uses a cryptographically seeded partial Fisher-Yates shuffle to guarantee zero repeats.

Can I generate random decimals between 0 and 1?

Yes. Set Minimum to 0, Maximum to 1, and choose 1, 2, 4, or 6 decimal places in the Decimal Places dropdown—or click the '0.00 – 1.00' quick preset.

What lottery formats and tabletop dice are included?

The Lottery Picker tab supports Powerball (5/69 + 1/26), Mega Millions (5/70 + 1/25), EuroMillions (5/50 + 2/12), and Classic 6/49 with 1-line or 5-line quick picks. The Dice Roller tab supports D4, D6, D8, D10, D12, D20 (with Advantage/Disadvantage), and D100 with flat modifiers.

Are my generated numbers or raffle draws logged on a server?

Never. Every number, lottery line, die roll, and coin flip is computed locally in your browser using hardware-backed OS entropy with zero network requests.