Lottery Number Generator

Generate random lottery numbers for various game formats

Result
Numbers
4, 15, 17, 19, 20, 43
Bonus Ball
N/A
Game
6/49

About This Tool

Pick a game format — Powerball (5 of 69 plus 1 of 26), Mega Millions, EuroMillions, your local pick-6 — and the generator returns a random valid combination. The randomness uses the Web Crypto API, which is cryptographically random rather than the weaker Math.random() most quick scripts use.

Picking 'random' numbers does not improve your odds. Every legal combination is equally likely on every draw. The reason to use a generator is to avoid patterns humans pick consistently (birthdays cluster numbers under 31, lucky numbers cluster around 7 and 11) — patterns that are equally likely to win but more likely to be split across multiple winners if they do.

The expected value of every commercial lottery is negative. The generator helps you pick numbers; it does not help you make money.

The sampling algorithm: for a 'pick K of N' game, the generator produces K unique random integers in the range [1, N]. Internally it uses Fisher-Yates partial shuffle: generate K random indices via crypto.getRandomValues, swap them through an array of [1..N], take the first K elements. This guarantees uniqueness without rejection sampling and uses cryptographic-grade entropy — the same primitive web servers use for session tokens. For games with a separate 'special ball' (Powerball's red ball, Mega Millions' Megaball), a second independent draw runs against that smaller pool.

Worked example: Powerball generator output might be 7, 23, 31, 49, 62 with Powerball 14. Probability of this exact combo: 1 in 292,201,338. To win the jackpot you need all six numbers. Match 5 white balls without the Powerball: 1 in 11,688,053. Match 4 + Powerball: 1 in 913,129. The pyramid of prizes pays out smaller wins more often, but the expected value calculation is dominated by the jackpot odds, which are abysmal. A $2 ticket buying you a 1-in-292-million shot at $300 million has expected value of about $1 (jackpot) plus ~$0.30 (smaller prizes) = ~$1.30. You spent $2.

What the generator does and doesn't help with: it gives you cryptographically-random picks, which spreads winnings less if you do win (because human-chosen patterns get duplicated and split prizes among more winners). It does not change your odds of winning. It cannot predict which numbers will be drawn — there's no pattern in past draws that affects future draws (each ball is independently shuffled before each draw). Hot-cold number theories are folk math; the lottery's expected value remains negative regardless of which numbers you pick.

The about text and FAQ on this page were drafted with AI assistance and reviewed by a member of the Coherence Daddy team before publishing. See our Content Policy for editorial standards.

Frequently Asked Questions