Lotto Number Generator
Generate lottery numbers using draw, accumulator, max accumulator, and minimum consecutive algorithms with cryptographic randomness.
About
Lottery number selection without statistical rigor is equivalent to discarding money. This generator applies four distinct algorithmic strategies to surface numbers from a uniform random distribution powered by the Web Crypto API (crypto.getRandomValues). The Draw mode tallies frequency across N simulated draws. The Accumulator mode weights consecutive appearances exponentially by a configurable factor f, producing scores that grow as 1 + f + f2 + … for each unbroken streak. The Max Accumulator variant re-ranks by longest streak first, score second. The Minimum Consecutive mode draws indefinitely until a ball achieves minCon consecutive hits, a process whose expected runtime grows exponentially with the pool size. This tool does not predict winning numbers. No algorithm can overcome the inherent entropy of a fair lottery draw. What it does provide is a repeatable, auditable, non-biased selection process that eliminates human pattern-seeking tendencies.
Formulas
The jackpot odds for a standard lottery are computed via the combination formula. Given a pool of n balls from which k are drawn:
In Accumulator mode, the score S for a ball with a consecutive streak of length c is:
where f = 100 (default accumulator factor). When the streak breaks, the score resets to 1 on the next appearance. In Minimum Consecutive mode, the expected number of single draws E before any one ball from a pool of n achieves m consecutive hits is approximately:
This exponential growth is why minCon values above 6 - 7 for pools of 50+ balls can require billions of iterations. The generator caps computation time to prevent browser lockup.
Where: n = total balls in pool, k = number of picks, f = accumulator multiplier factor, c = consecutive streak length, m = minimum consecutive target, S = accumulated score.
Reference Data
| Lottery | Main Range | Main Picks | Bonus Range | Bonus Picks | Odds (Jackpot) |
|---|---|---|---|---|---|
| UK Lotto | 1 - 59 | 6 | - | - | 1 in 45,057,474 |
| EuroMillions | 1 - 50 | 5 | 1 - 12 | 2 | 1 in 139,838,160 |
| US Powerball | 1 - 69 | 5 | 1 - 26 | 1 | 1 in 292,201,338 |
| US Mega Millions | 1 - 70 | 5 | 1 - 25 | 1 | 1 in 302,575,350 |
| UK Thunderball | 1 - 39 | 5 | 1 - 14 | 1 | 1 in 8,060,598 |
| UK Set For Life | 1 - 47 | 5 | 1 - 10 | 1 | 1 in 15,339,390 |
| Irish Lotto | 1 - 47 | 6 | - | - | 1 in 10,737,573 |
| Canadian Lotto 6/49 | 1 - 49 | 6 | - | - | 1 in 13,983,816 |
| Australian Powerball | 1 - 35 | 7 | 1 - 20 | 1 | 1 in 134,490,400 |
| German Lotto 6aus49 | 1 - 49 | 6 | 0 - 9 | 1 | 1 in 139,838,160 |
| French Loto | 1 - 49 | 5 | 1 - 10 | 1 | 1 in 19,068,840 |
| Spanish El Gordo | 1 - 54 | 5 | 0 - 9 | 1 | 1 in 31,625,100 |
| South Africa Powerball | 1 - 50 | 5 | 1 - 20 | 1 | 1 in 42,375,200 |
| Brazil Mega-Sena | 1 - 60 | 6 | - | - | 1 in 50,063,860 |
| Japan Loto 6 | 1 - 43 | 6 | - | - | 1 in 6,096,454 |