Solved.tools โ€” Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

Lottery Number Generator

Last updated: 15 August 2026

Reviewed by Gavin ยท Research and drafting assisted by AI

Was this helpful?


Lottery Number Generator

Generate random lottery numbers from any pool and pick count. The default settings (1..49, pick 6, plus a 1..10 bonus ball) match common European and South African lottery formats. Configure the pool to match any lottery in the world: Powerball (1..69 main + 1..26 Powerball), Mega Millions (1..70 + 1..25), EuroMillions (5 from 1..50 + 2 from 1..12), or any local format.

Whether you play the UK Lotto every Wednesday and Saturday, chase a EuroMillions rollover, buy a Powerball ticket when the jackpot climbs past $300 million, or stick with your local 6/49, the underlying math is the same: every combination is equally likely, and the only useful thing a generator can do for you is hand you a random ticket quickly so you don't waste ten minutes at the newsagent deliberating between your uncle's birthday and the year your dog was born. This tool does exactly that, for any lottery format on Earth.

How to Use This Tool

  1. Set the pool range (minimum and maximum of the main numbers).
  2. Set the pick count (how many numbers to draw from the pool).
  3. Optionally enable a bonus ball from a separate range (Powerball, Lucky Star, etc.).
  4. Click Generate for one ticket. Click again for a new combination.

The generator validates your inputs before drawing. If you set a pick count larger than the pool size, or a minimum greater than the maximum, the tool refuses to produce output rather than silently giving you nonsense, you'll just see no result box appear. Fix the configuration and try again.

The bonus ball toggle lets you turn the secondary pool on or off. UK Lotto doesn't have one, so leave it disabled. EuroMillions uses two Lucky Stars, so you'd need to draw twice and combine, but the generator produces one bonus number per click, which covers the more common single-bonus formats (Powerball, Mega Ball, SA Lotto Bonus Ball). For two-bonus formats, just click Generate twice and treat the first result as your main ticket and the second as your Lucky Stars pair.

How the Numbers Are Drawn

This generator uses Fisher-Yates shuffle, which produces an unbiased permutation of the pool in O(n) time. Each number in the pool has an exactly equal probability of being selected, and no combination is more likely than any other of the same size.

The shuffle is seeded by Math.random(), which is a cryptographically weak pseudorandom generator. For lottery purposes (where outcomes are public and verifiable) this is more than sufficient. For cryptographic use, use a CSPRNG.

Fisher-Yates works backwards through the array and, at each position, swaps the current element with a randomly chosen element from the prefix that includes itself. After one pass, every permutation of the input is exactly equally likely, there is no statistical bias toward early or late positions in the array, and no clustering of low or high numbers. The "sort after drawing" step we use here is purely cosmetic so the on-screen ticket reads from low to high; it does not change which numbers were selected.

For a 6/49 lottery, the number of distinct combinations is C(49, 6) = 13,983,816. Your generator output is one of these 13.98 million tickets, picked at random with uniform probability. The same logic applies for any other pool/pick configuration.

Common Lottery Formats

LotteryMain poolBonus pool
UK Lotto6 from 1 to 59,
EuroMillions5 from 1 to 502 from 1 to 12 (Lucky Stars)
EuroJackpot5 from 1 to 502 from 1 to 12 (Euro numbers)
US Powerball5 from 1 to 691 from 1 to 26 (Powerball)
US Mega Millions5 from 1 to 701 from 1 to 25 (Mega Ball)
SA Lotto6 from 1 to 521 from 1 to 52 (Bonus Ball)
Oz Lotto7 from 1 to 45,

To use any of these: set pool_min = 1, pool_max to the top of the main pool, pick_count to the number of main balls, and (where applicable) toggle the bonus ball on with bonus_min = 1 and bonus_max = the top of the bonus pool. For EuroMillions and EuroJackpot, which use two bonus balls from the same range, click Generate twice and treat the two bonus draws as your Lucky Stars / Euro numbers.

Worked Examples

UK Lotto (6 from 1 to 59, no bonus): A typical draw produces 6 unique numbers in [1, 59]. Example output: 03, 14, 27, 39, 51, 58.

EuroMillions (5 from 1 to 50 + 2 from 1 to 12): Five numbers from the main pool, plus two Lucky Stars. Example: 07, 19, 31, 42, 48 + Lucky Stars 04, 11.

US Powerball (5 from 1 to 69 + 1 from 1 to 26): Five main numbers plus one Powerball. Example: 05, 23, 41, 56, 67 + Powerball 14.

Odds: The probability of winning a 6/49 jackpot is 1 in C(49, 6) = 1 in 13,983,816. Adding a bonus ball (e.g. SA Lotto's 1/52) increases the combination count but typically does not change the jackpot odds, the bonus affects secondary tiers.

For Powerball the odds are worse: you need to match 5 numbers from 69 AND 1 from 26, which works out to 1 in 292,201,338. Mega Millions is similar at 1 in 290,472,336 (5 from 70 + 1 from 25). EuroMillions sits at roughly 1 in 139,838,160 because the two-Lucky-Stars structure multiplies the denominator. None of these numbers change whether you pick your own ticket or use quick-pick, every combination has identical probability.

Common Mistakes

  • Treating quick-pick as luckier or unluckier than self-picked numbers. Every combination has the same probability. There is no hot or cold number. Past draws do not influence future ones.
  • Playing the same numbers every week, expecting them to be "due". Independent draws have independent outcomes; the gambler's fallacy does not apply to lottery draws.
  • Buying many tickets with similar numbers. If the numbers share a common pattern (consecutive, all-even, birth-dates clustered), the prize is shared more often if they win.
  • Forgetting to claim winnings. Many lotteries have a 90-day to 1-year claim window. Check the rules in your jurisdiction.

A related mistake is "chasing", increasing your spend after a long losing streak in the hope of breaking even. Because each ticket is independent and the expected value is negative, chasing just amplifies the loss. Set a budget before you play, and stop when you reach it.

Another subtle mistake is failing to check the second-tier prizes. Most lotteries pay out for matching 3, 4, or 5 main numbers (with or without the bonus). A quick-pick that matches three numbers is still a small win; don't throw the ticket away without checking.

Frequently Asked Questions

Are these numbers really random?

Yes. The generator uses Fisher-Yates shuffle, which produces an unbiased permutation of the pool. Each combination is equally likely. The underlying randomness source is JavaScript's Math.random(), which is fine for lottery purposes but not for cryptography.

Can I use this for any lottery?

Yes, set the pool range and pick count to match your lottery's rules. The defaults match common 6/49 European formats. Powerball users should set pool_max = 69 and enable the bonus pool with bonus_max = 26.

What is the probability of winning the jackpot?

For a 6/49 lottery the odds are 1 in C(49, 6) = 1 in 13,983,816. For Powerball (5/69 + 1/26) the odds are 1 in 292,201,338. These are the same odds for every combination, including the ones this generator produces.

Should I pick my own numbers or use quick-pick?

Statistically it makes no difference, every combination has the same probability. Psychologically, many winners report using quick-pick because the alternative (picking your own) can lead to obvious patterns (birthdays, anniversaries) that other players also pick, so a shared jackpot is more likely.

Are there really hot and cold numbers?

No. Each draw is independent. A number that appeared yesterday is just as likely (or unlikely) to appear today as one that hasn't appeared in months. The gambler's fallacy is the mistaken belief that past outcomes influence future ones.

Is this generator suitable for gambling decisions?

The numbers it produces are as fair as the underlying pseudorandom generator allows. It does not increase or decrease your chance of winning. Lottery is a form of entertainment with a negative expected value, only spend what you can afford to lose.

Can I save or share the ticket this tool generates?

The tool prints a single ticket on screen. Take a screenshot if you want to keep it, or just write the numbers down. There is no built-in history or share button, and that's intentional, the ticket is meant to be one you take to a retailer, not one you store on a third-party server. If you lose it, you can always click Generate again; you won't get the same numbers (the probability is essentially zero), but you'll get a fresh ticket that's just as likely to win.

References

  • Fisher & Yates, "Statistical Tables for Biological, Agricultural and Medical Research" (1938), original presentation of the shuffle algorithm.
  • Durstenfeld, "Algorithm 235: Random Permutation" (1964), the modern in-place shuffle.
  • Knuth, The Art of Computer Programming, Vol 2, ยง3.4.2, comprehensive treatment of random sampling.