Lottery Number Generator
A fully configurable lottery number generator: set your own main number range, how many numbers per line, an optional bonus range, and how many lines to generate.
How to use this tool
- Set the main number range and how many numbers per line.
- Optionally add a bonus-ball range and count.
- Choose how many lines to generate.
- Include or exclude specific numbers if you like.
- Generate your lines, and generate again any time — your session history stays on this page and clears when you press Clear session history or leave.
Understanding the controls
- Main range min and max
- The lowest and highest main number, both whole. No number repeats within a line.
- Main numbers per line
- How many main numbers each line holds: 1 or more, and no more than the range has.
- Bonus numbers per line
- 0 for none. Above 0 a bonus range appears, and the bonus numbers are drawn from it separately from the main ones.
- Number of lines
- From 1 to 20 in one press. The page keeps the last 50 lines it has drawn until you clear them.
- Always include
- Main numbers, separated by commas, that every line must hold. One that is outside the range, or also listed under Never include, is left out.
- Never include
- Main numbers, separated by commas, that no line may hold. Neither list touches the bonus numbers.
Worked examples
- A 6-from-49 format
- Main range 1–49, 6 numbers per line, no bonus range. Generate several lines at once if you play more than one.
- An office sweepstake numbered 1–30
- Main range 1–30, 1 number per line, one line per draw. Lines are independent, so the same number can come up twice — to give each participant a different number, shuffle the list instead.
Common use cases
- Generating your own numbers for any lottery format
- Trying a custom or workplace sweepstake number range
- Comparing self-picked numbers against quick-pick
How this generator works
You define the format and the tool builds a pool of every number in your main range, then draws from it without replacement so no number repeats within a line. A bonus range, if your format has one, is drawn from its own separate pool. Numbers come from your browser's Web Crypto random generator, and each line is generated independently of the others — so two lines can legitimately share numbers.
Limitations and good to know
- This cannot improve your chances of winning anything. Every valid combination has exactly the same probability, whether a machine picked it, this page picked it, or you chose your family's birthdays.
- There is no analysis of past draws, and there could not usefully be — draws are independent, so 'hot', 'cold' and 'overdue' numbers carry no predictive information whatsoever.
- It is not connected to any lottery operator. It does not buy tickets, check results, or know the real rules of any specific game, so confirm your format with the operator before playing.
- This is an entertainment tool for people who prefer choosing their own numbers over an automatic pick. It is not a system, a strategy, or financial advice.
This is an unofficial, independent tool and is not affiliated with or endorsed by any lottery operator. Every valid number combination has exactly the same probability of being drawn — generating numbers here does not improve your odds, and past draws have no bearing on future ones. Play only where you meet the applicable legal age requirement, and gamble responsibly.
Frequently asked questions
- Can this generator improve my odds of winning?
- No, and no tool can. Every valid combination has an identical chance of being drawn, so numbers from this page are exactly as likely — and exactly as unlikely — as any others. The only honest reason to use it is that you would rather generate your own line than take an automatic pick.
- Should I avoid numbers that came up last week?
- It makes no difference to your chance of winning. Draws are independent, so a number that appeared recently is neither more nor less likely next time. The one thing number choice can affect is how many people you would share a prize with — very common patterns such as dates under 31 are picked by more players, so a win might be split more ways.
- How do I work out the odds for my own range?
- Divide 1 by the number of ways to choose your main numbers from your range — for k numbers from a range of n, that count is n! / (k! × (n−k)!), read as "n choose k". A 6-from-49 format, for instance, gives 13,983,816 combinations, so odds of 1 in 13,983,816. Add a bonus range and multiply by its own "choose" count as well, since the two pools are independent.
Related generators
- UK National Lottery-Style Number GeneratorGenerate 6 numbers from 1–59 in the format used by the UK National Lottery main draw.
- EuroMillions-Style Number GeneratorGenerate 5 main numbers from 1–50 plus 2 Lucky Stars from 1–12, in the EuroMillions format.
- Raffle Winner PickerPick one or more raffle winners from a list of entries, fairly and transparently.
- Oz Lotto-Style Number GeneratorGenerate 7 numbers from 1–47, in the Australian Oz Lotto format.
- Powerball-Style Number GeneratorGenerate 5 main numbers from 1–69 plus a Powerball from 1–26, in the US Powerball format.
- Keno Number GeneratorGenerate 20 random keno-style numbers from a 1-80 range.