Random Number Generator
Set a range, choose how many, and get unbiased random numbers instantly — or grab lottery quick picks for Powerball, Mega Millions, EuroMillions, and Lotto 6/45.
Numbers are generated with your browser's cryptographic RNG and never sent anywhere.
How the random number generator picks numbers
Every number this tool produces comes from your browser's cryptographic random source (crypto.getRandomValues), not the ordinary Math.random(). Math.random() is fast and fine for animations, but it is not designed to be unpredictable and its output can be slightly uneven. The cryptographic source is built to be both unpredictable and uniform, which matters whenever fairness counts — draws, giveaways, sampling, or splitting people into groups.
Uniformity hides a subtle trap called modulo bias. If you take a random byte (0–255) and simply reduce it to a range that does not divide evenly, some outcomes become more likely than others. To avoid this the tool uses rejection sampling: it discards the few values that would skew the range and draws again, so every number in your range ends up exactly equally likely.
When to allow duplicates
Leave duplicates on when each draw is independent and repeats are legitimate — rolling dice, flipping coins, or picking a random day several times. Turn them off when every result must be distinct, such as choosing winners, ordering a list, or dealing unique tickets. With duplicates off, the count cannot exceed the size of the range, because you cannot draw 30 unique numbers from a pool of 20.
Built-in lottery presets
The lottery tab fills in the official rules for five popular games so you do not have to look them up. Bonus balls are drawn from their own separate pool, exactly as the real machines do. These figures are accurate as of July 2026.
| Game | Main pool | Bonus pool |
|---|---|---|
| Powerball (USA) | 5 of 1–69 | 1 of 1–26 |
| Mega Millions (USA) | 5 of 1–70 | 1 of 1–24 |
| EuroMillions (Europe) | 5 of 1–50 | 2 of 1–12 |
| Lotto 6/59 (UK) | 6 of 1–59 | — |
| Lotto 6/45 (Korea) | 6 of 1–45 | — |
Privacy and repeatability
Numbers are generated entirely inside your browser and are never sent anywhere; only your last settings are remembered so the form is ready next time. One consequence of a true random source is that results are not repeatable — there is no seed to type in that would reproduce a past draw. If you need an auditable sequence for a formal prize draw, record the output at the moment you generate it, because the same settings will produce fresh numbers every time.
Sources & further reading
Frequently asked questions
How are the numbers generated?
Every number comes from your browser's cryptographic random source (crypto.getRandomValues) with rejection sampling to remove modulo bias, so each value in the range is equally likely. That is stronger than the ordinary Math.random(), which is fast but not built to be unpredictable or perfectly uniform. This random number generator never falls back to Math.random().
Do quick picks improve my odds of winning?
No. Every combination has exactly the same chance, whether you choose it yourself or use a quick pick — the draw has no idea how the numbers were picked. For scale, the odds of matching all six Powerball numbers are about 1 in 292,201,338. A lottery number generator only saves you time; it cannot beat the odds.
Are my numbers stored or sent anywhere?
No. Everything runs inside your browser and nothing is uploaded — no server ever sees your numbers. Only your last settings (range, count, options and chosen lottery) are kept in this browser's localStorage so the tool remembers them; the generated numbers themselves are never stored.
Which lottery rules are used, and are they current?
The four presets are accurate as of July 2026: Powerball draws 5 numbers from 1–69 plus 1 Powerball from 1–26; Mega Millions draws 5 from 1–70 plus 1 Mega Ball from 1–24 (the April 2025 revision); EuroMillions draws 5 from 1–50 plus 2 Lucky Stars from 1–12; and Korea's Lotto 6/45 draws 6 from 1–45. Bonus balls are drawn from their own separate pool, exactly like the official machines.
When should I turn duplicates off?
Turn duplicates off whenever each result must be unique — drawing raffle or giveaway winners, assigning seats or turn order, or splitting people into teams — so no number can repeat. Leave duplicates on for things like dice rolls or independent picks, where the same number can legitimately come up again.