Lottery number generator
Random lines like a quick pick, with the odds worked out
Choose a format and how many lines. The numbers are random; no line is luckier than another.
Ready
Choose a format, then press Make lines.
| Line | Main numbers | Bonus |
|---|
How it is drawn: your browser's crypto.getRandomValues supplies random 32-bit numbers, and any value that would make one result more likely than another is thrown away and drawn again, so every possible line is equally likely, with no number twice in the same pool.
What this page does
It fills in lottery lines at random, like a quick pick at a store. Each line takes its main numbers from one pool with no number twice, and its bonus number from a second pool, drawn with your browser's crypto.getRandomValues. The main numbers are then sorted from low to high, as they are on a ticket.
The formats
- Powerball style: five numbers from 1 to 69 and one from 1 to 26. The official Powerball site (powerball.com, read 17 Nov 2026) describes the game this way.
- Mega Millions style: five numbers from 1 to 70 and one from 1 to 24, as the official Mega Millions site's How to Play page describes it (megamillions.com, read 17 Nov 2026).
- My own format: any game that draws up to 20 numbers from a pool of up to 100, with up to 5 bonus numbers from a second pool.
Games change their rules from time to time. Check the format on your ticket or with your lottery before you play.
Your chances
The page shows the chance that one line matches every number, worked out from the format. For the Powerball format it is 1 in 292,201,338, and for Mega Millions 1 in 290,472,336, the same figures the two official sites give. No line is luckier than another: 1, 2, 3, 4, 5 has exactly the same chance as any other set. Picking unpopular numbers can only change how a prize is shared, not whether you win.
What it is not
This page does not predict, analyze or improve anything, and it is not connected with any lottery. Powerball and Mega Millions are trademarks of their owners. It is not for running a draw. If gambling stops being fun, talk to someone you trust or a local support service.