Games

Lottery Number Generator

Random Lotto 6/45 number picks.

What is this?

Draws 6 unique numbers from 1–45 for Lotto 6/45, using the browser's cryptographic random generator. Pick how many games to draw at once.

How to use it

Enter the number of games (1–5) and press Generate. Press again for a fresh draw. Everything runs in your browser.

Ball colors
  • Yellow 1–10 · Blue 11–20 · Red 21–30 · Gray 31–40 · Green 41–45.
Why jackpot odds are 1 in 8,145,060

Winning the jackpot means matching all 6 numbers drawn from 1–45 in any order, and the number of possible combinations is given by 45 choose 6 (45C6). The formula is 45×44×43×42×41×40 divided by 6×5×4×3×2×1 (=720); dividing the numerator 5,864,443,200 by 720 gives exactly 8,145,060. So there are 8,145,060 possible 6-number combinations, meaning any single combination has odds of 1 in 8,145,060. Whether picked automatically or by hand, every combination has exactly the same odds.

Why "frequently drawn numbers" don't help next time

Each lottery drawing is an independent trial. Whether a number has come up often or rarely in past draws, its odds in the next drawing remain exactly 6 in 45 — the balls and machine have no memory. Believing a number is "due" because it hasn't appeared in a while is the same gambler's fallacy as thinking a coin is more likely to land tails after nine heads in a row. This generator draws every set independently, unrelated to past winning statistics.

How are numbers drawn?
Six unique numbers from 1–45 are chosen at random and sorted, using the browser's cryptographic random generator (crypto.getRandomValues).
What are the odds of the jackpot?
Matching all 6 numbers in Lotto 6/45 has odds of 1 in 8,145,060. Every combination has the same chance, whether auto or manual.
Does this guarantee a win?
No. The lottery is fully random and no set of numbers guarantees a win. This tool is for convenience and fun — please play responsibly.
Are the numbers sent to a server?
No. Generation happens entirely in your browser; numbers are never uploaded or stored.
How do you calculate the number of ways to choose 6 from 45?
Using the combination formula 45C6 = 45×44×43×42×41×40 ÷ (6×5×4×3×2×1) = 5,864,443,200 ÷ 720 = 8,145,060. Since order doesn't matter, this uses combinations rather than permutations.
Do frequently drawn numbers improve my odds?
No. Each lottery drawing is independent, so how often a number appeared in the past has no effect on the next drawing's probability. Whichever numbers you choose, jackpot odds are always 1 in 8,145,060.