Guide
Random lottery numbers and the true odds: what a generator can and cannot do
Most lottery tickets are bought as quick picks or from a habit of numbers, and the part people want most from a generator is the quick pick without a trip to the shop. This page does that for any format, and does something more useful too: it shows the real odds of the game you are playing, calculated from the number of combinations, so that the price of a ticket can be set against its chances.
Choosing a game
Five presets cover common formats: 6 of 49, 5 of 50 plus 2 of 12, 5 of 69 plus 1 of 26, keno with 10 chosen from 80 and 20 drawn, and a small 4 of 20. For anything else, set the numbers to pick, from 1 to 30, the pool they come from, from 2 to 100, the number of bonus numbers, up to 5, and the bonus pool. The lines box sets how many sets of numbers to make, up to 20, and Generate draws them.
How the numbers are drawn
Each line is a set of different numbers from the pool, shuffled with the browser’s cryptographic random generator and shown in ascending order, padded with zeros to a common width. A bonus number is drawn from its own pool. Nothing is remembered between presses, and the numbers are neither stored nor sent anywhere, so every press is independent of the last.
Calculating the odds
For an ordinary lottery the jackpot needs all your numbers to match all those drawn, and the number of possible sets is the combination of the pool taken the number to pick at a time. For 6 from 49 it is 49 times 48 and so on down to 44, divided by 6 factorial, which is 13,983,816. A bonus pool multiplies it by the combinations of the bonus numbers: 5 of 69 gives 11,238,513 and 26 bonus balls multiply it to 292,201,338, and 5 of 50 gives 2,118,760 times 66 pairs from 12, which is 139,838,160. In keno you pick some numbers and more are drawn, so the chance that all of yours are among those drawn is the combinations of the drawn numbers divided by the combinations of the pool: for 10 chosen from 80 with 20 drawn, about 1 in 8,911,711.
A worked example
Press the 6 of 49 preset, keep five lines and press Generate. Five rows of six different numbers between 01 and 49 appear, in order, and the odds panel reads 1 in 13,983,816 for the jackpot and about 1 in 54,200 for matching exactly five of the six. Press the 5 of 69 plus 1 of 26 preset and the panel reads 1 in 292,201,338. Press the keno preset and it reads 1 in 8,911,711 (about) for matching all ten.
Lucky numbers and systems
Every set of numbers is exactly as likely as any other, including 1, 2, 3, 4, 5, 6. Numbers that have not come up for a while are not due, and numbers that have are not hot, because the draw has no memory. No system, wheel or pattern changes the chance that one ticket wins; buying more tickets raises your chance only in proportion to the number of tickets. A generator merely saves you the choice, and the honest message of the odds is that the jackpot is extremely unlikely.
Playing responsibly
Treat a ticket as an entertainment expense, not an investment, and spend only what you can afford to lose. If gambling stops being fun, or you find yourself chasing losses, talk to someone or contact a support organisation in your country.
Limits
This page is not connected to any lottery, cannot check a result or place a bet, and covers the jackpot and the match-all-but-one chance only. Formats with several prize tiers, extra balls and refunds are not modelled.
Related tools
Random Number Generator picks numbers in any range. Raffle Ticket Maker prints tickets for a draw you run yourself. Dice Roller rolls dice, and Card Deck Shuffler and Dealer deals cards.
Checked against the current version of the Lottery Number Generator on .

