Lottery number generator — quick-pick lines with the exact odds

Choose a game and how many lines you want, and the tool draws each line like balls from a machine, with no repeated numbers, and shows the exact odds of one line matching every number.

Live demo · real result from this tool

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use the lottery number generator

  1. Choose a Game: 6 from 49, Powerball (US): 5 from 69 + 1 from 26, EuroMillions: 5 from 50 + 2 Lucky Stars from 12, or Custom.
  2. Set Lines, from 1 to 50.
  3. For Custom, enter Pick, From 1 to, Bonus numbers and Bonus from 1 to. Set Bonus numbers to 0 for a game without a bonus ball.
  4. Press Generate. A table lists each line, and below it you see the number of possible combinations and the chance that one line matches every number.

What it does and when to use it

The tool does what a “quick pick” terminal does: it chooses numbers for you so you do not have to. It also suits an office syndicate, a probability lesson, or a party game with a custom format such as 3 from 20.

It does not predict anything. Past results, “hot” and “cold” numbers and patterns have no effect on a fair draw, and this tool does not use them. Picking at random may make it less likely that you share a prize with people who chose popular patterns such as birthdays, but your chance of winning stays exactly the same. Play only with money you can afford to lose.

How it works

For each line the tool lists every number from 1 to the top of the range, shuffles that list with crypto.getRandomValues (a Fisher–Yates shuffle, so every order is equally likely), takes the first numbers and sorts them. Bonus numbers come from a separate shuffle of their own range.

The odds use exact whole-number arithmetic. For 6 from 49 the count is 49! ÷ (6! × 43!) = 13,983,816. For Powerball it is 11,238,513 main combinations × 26 Powerballs = 292,201,338. For EuroMillions it is 2,118,760 × 66 Lucky Star pairs = 139,838,160.

Worked examples

6 from 49, one line. The output shows six numbers such as 02 04 12 38 39 42 and Possible combinations per line: 13,983,816.

EuroMillions, two lines. Each line has five numbers plus a Lucky Stars column, and the stats read 1 in 139,838,160. Buying two different lines doubles your chance to 2 in 139,838,160, which is still tiny.

A full-range custom draw. Custom with Pick 5 from 1 to 5 must use every number, so the line is always 01 02 03 04 05 and there is exactly 1 combination. Asking for 7 from 1 to 5 returns “You cannot pick more numbers than the range holds.”

Limits and tips

  • Game formats can change; check your operator’s rules before you buy a ticket. Prize amounts are not shown.
  • For other number draws, use the random number generator; for bingo, the bingo card generator; to settle who buys the tickets, the spinner wheel.
  • Numbers are generated in your browser and not stored.

Frequently asked questions

Can this tool help me win the lottery?
No. No tool, system or pattern can improve your odds. In a fair draw every combination is exactly as likely as every other, so a random line has the same chance as your birthday numbers or 1-2-3-4-5-6.
Are the numbers in a line always different?
Yes. Each line is drawn without repeats, like balls leaving a machine, and the bonus numbers are drawn from their own separate pool. Numbers are shown in ascending order with a leading zero, such as 07.
Where do the odds come from?
They are calculated, not copied. For a game where you pick k numbers from n, the number of possible lines is n! ÷ (k! × (n − k)!), multiplied by the same count for the bonus pool. The Powerball figure matches the jackpot odds on the official prize chart.
Can my game format be added?
Choose Custom and set Pick, From 1 to, Bonus numbers and Bonus from 1 to. Up to 20 main numbers from a range up to 100, and up to 5 bonus numbers, are supported.

Sources

  1. Powerball prize chart — Multi-State Lottery Association, accessed 2026-10-02
  2. How to play EuroMillions — lottery.co.uk, accessed 2026-10-02

Written by the ToolsRift team · Last updated · Figures last verified

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close