Lottery Number Generator

Pick a game or set your own pool size and picks, then generate up to 20 quick-pick lines. Each line is sorted and drawn without repeats, the same as balls in a real draw.

6 from 49 Press Space to generate

How to use the lottery number generator

  1. Pick a game. Choose 6/49, a Powerball-style or EuroMillions-style format, or set Custom to match your own game's rules.
  2. Check the pool and picks. These fill in automatically for the presets. For Custom, enter the highest number in the main pool and how many numbers are drawn.
  3. Add a bonus if your game has one. Set the bonus pool size and how many bonus numbers are drawn, or leave the bonus pool at 0 for games without one.
  4. Generate. Each line is sorted low to high and drawn without repeats. Generate up to 20 lines at once and copy them all in one go.

Odds of matching all the main numbers

These are the odds for the presets above, for matching every main number in a single line.

GameFormatOdds (main numbers)
6/496 from 491 in 13,983,816
Powerball style5 from 69 + 1 from 261 in 11,238,513
EuroMillions style5 from 50 + 2 from 121 in 2,118,760

Odds shown are for the main numbers only. Adding a bonus ball match makes winning the full jackpot rarer still. Rules vary by country and operator, so always check the official game page.

Worked examples

Press "Load this example" to fill in the generator and run it.

Fill a 6/49 slip with 4 lines

Four separate quick picks for one ticket.

Pool 49 · Picks 6 · Lines 4

A Powerball-style quick pick

Five main numbers from 69, plus one bonus number from 26.

Pool 69 · Picks 5 · Bonus pool 26 · Bonus picks 1

A EuroMillions-style quick pick

Five main numbers from 50, plus two lucky stars from 12.

Pool 50 · Picks 5 · Bonus pool 12 · Bonus picks 2

A small office sweepstake, 1 to 100

Custom game: one number per person from a pool of 100.

Pool 100 · Picks 1 · Lines 10

Tips for choosing lottery numbers

A random pick can't change your odds. Every combination in a lottery has exactly the same chance, whether you choose it yourself or let a generator choose for you.

It can change what happens if you win. Many players pick numbers from birthdays, which cluster under 32. A pick that ignores that pattern is less likely to land on a combination other winners also chose, so you're less likely to split the jackpot.

Buy tickets only from an official retailer. RandomlyHQ isn't connected to any lottery operator. This tool suggests numbers; it doesn't sell tickets or check results.

Why these picks are fair

Numbers are drawn using crypto.getRandomValues, the same secure random source browsers use for encryption, with rejection sampling so every number in the pool has an exactly equal chance. Numbers within a line are drawn without repeats, just like balls drawn from a lottery machine.

Everything happens on your device. Your generated lines are never sent anywhere.

Lottery number generator questions

Which lottery games does this support?

Presets cover common formats such as 6/49, 5/69 plus 1/26 (Powerball style) and 5/50 plus 2/12 (EuroMillions style). You can also set your own game with any pool size and number of picks.

Does a random pick improve my odds of winning?

No. Every combination in a lottery has the same chance, whether you pick it yourself or let a generator choose.

Why use a random generator then?

Random picks help you avoid popular patterns such as birthdays, which are often under 32. If your numbers win, you're less likely to share the prize with other people.

What are the odds of winning a 6/49 lottery?

One in 13,983,816 for matching all six numbers.

Can I generate several lines at once?

Yes. Generate up to 20 lines in one go, each sorted in ascending order for easy filling of your slip.

Will the same number appear twice in one line?

No. Numbers in a line are drawn without repeats, like the balls in a real draw.

How are the bonus balls handled?

Games with a separate bonus pool, such as Powerball or EuroMillions, draw those numbers separately from their own range.

Are there numbers that come up more often?

Over short periods, some numbers appear more often by chance, but every number has the same probability in each draw. Past results don't predict future ones.

Is this site connected to any official lottery?

No. RandomlyHQ isn't affiliated with any lottery operator. Always buy tickets from an official retailer and check results with the operator.