Lotto number generator
Pick 6 random numbers from 1–45.
Just-for-fun random draw; no guarantee of winning.
The slip is in front of you and the numbers you always mark are the same three birthdays you marked last time. This picks for you instead: choose how many lines you want, and each one comes out as six different numbers between 1 and 45, sorted and colour-coded the way the balls are.
How it works
What you get
The Games dropdown offers 1, 5 or 10 lines, with 5 selected by default. Each line is six distinct numbers from 1 to 45, sorted low to high, shown as coloured balls. The colours follow the familiar 6/45 banding, which makes it easier to copy onto a slip without losing your place:
| Number range | Ball colour |
|---|---|
| 1-10 | Yellow |
| 11-20 | Blue |
| 21-30 | Red |
| 31-40 | Grey |
| 41-45 | Green |
A fresh set appears when the page loads and again every time you press the button. Nothing is saved and nothing is sent anywhere, so once you refresh, those lines are gone.
Where the numbers come from
The draw uses crypto.getRandomValues(), the browser's cryptographically secure random source, rather than the ordinary Math.random. Numbers are pulled until six different ones have been collected, so no line ever contains a repeat and every combination is equally likely to appear.
What a generator can and cannot do
There are 8,145,060 ways to choose 6 numbers out of 45. Every one of them is equally likely in a fair draw, including 1-2-3-4-5-6 and including whatever this page just produced. No generator, system or pattern changes those odds - anything claiming otherwise is wrong.
What random picking does change is who you share with. People who choose their own numbers lean heavily on dates, which crowds picks into 1-31 and leaves the high numbers thin. If a date-shaped combination wins, the prize is split more ways. Numbers drawn uniformly across the full range are less likely to be duplicated by other players. That affects the size of a prize, never the chance of winning one.
Lotteries are gambling. Only spend what you are comfortable losing, and check the age and legal rules where you live - they differ by country.
Terms explained
- Line (or game)
- One set of six numbers, equivalent to one entry on a slip.
- Combination
- An unordered set of numbers. 3-17-22 and 22-3-17 are the same combination, which is why results are sorted.
- CSPRNG
- A cryptographically secure pseudorandom number generator - the source this tool uses, designed to be unpredictable.
- Uniform distribution
- Every possible outcome has an equal chance. That is the property this generator aims for.
Frequently asked questions
Are generated numbers luckier than ones I choose myself?
No. Every combination has exactly the same chance in a fair draw, whichever way it was picked. The only practical difference is that random numbers spread across the whole 1-45 range are less likely to match another player's date-based pick, so a shared prize would be split fewer ways.
Does it skip combinations that have already won?
No, and deliberately so. Each draw is independent of every draw before it, so a combination that came up last year is exactly as likely as any other. Filtering past results would not improve anything.
How random is it, really?
It uses the browser's cryptographic random source rather than the ordinary pseudorandom function, and keeps drawing until it has six different numbers. Every number from 1 to 45 has the same chance of landing in a line.
Could the same line appear twice in ten games?
In principle yes, because each line is drawn independently. With over eight million possible combinations it is vanishingly unlikely, and if it happened it would be coincidence rather than a fault.
Are my numbers saved?
No. They are generated in your browser, shown on screen, and lost the moment you refresh or close the tab. Write them down or screenshot them if you want to keep them.
Tell us what went wrong and we'll fix it fast. (Leave an email if you'd like a reply.)