Connect via MCP →

Enter Calculation

Custom configuration (used only when game = Custom)

Formula

Formula: Lottery Number Generator
Show calculation steps (1)
  1. Unique draw (rejection sampling)

    Unique draw (rejection sampling): Lottery Number Generator

    For games requiring distinct numbers, redraw whenever a value already in the set is produced, until mainCount distinct numbers are collected.

Advertisement

Results

Your Quick Pick Numbers
5
plays generated for megamillions
  • #0 510203157 +22
  • #1 2630333751 +9
  • #2 912131733 +4
  • #3 48354766 +4
  • #4 1939586169 +1
Game megamillions
Main numbers 5 from 1 to 70
Special numbers 1 from 1 to 25
Plays 5

Numbers are randomly generated for entertainment only and do not improve your odds of winning. Re-submit for a fresh set.

What this tool does

The Lottery Number Generator produces random "quick pick" number sets for popular lottery games such as Powerball, Mega Millions, EuroMillions, Eurojackpot, Lotto 6/49, Thunderball, Keno and the daily Pick 2 through Pick 9 digit games. You can also define a fully custom game by setting how many numbers to draw, the value range, whether numbers must be unique, and an optional separate pool of special "bonus ball" numbers.

Lottery ticket with a grid of numbered balls, some highlighted as picks plus one special bonus ball
A quick pick selects a set of main numbers plus an optional special ball.

How to use it

Pick a lottery from the dropdown, choose how many plays (independent number sets) you want, and submit. Each play shows its main numbers, sorted ascending, plus any special ball numbers shown separately. Tick "Include my favorite numbers" and type a comma-separated list to force your lucky numbers into every play; for games with a bonus ball you can also fix a favorite special number. Re-submit at any time for a completely fresh draw.

The formula explained

This is a random algorithm rather than a closed-form equation. Each number comes from mapping a uniform random value \(r\) (between 0 and 1) onto the chosen inclusive range with $$n = \text{min} + \left\lfloor r \times (\text{max} - \text{min} + 1) \right\rfloor.$$ For games that require distinct numbers the generator uses rejection sampling: if a drawn value is already in the set it is discarded and another is drawn, repeating until the required count of distinct numbers is reached. Digit games (the Pick series) draw with replacement, so repeated digits are allowed and order is preserved.

Advertisement
Number line from min to max divided into equal segments, a random value r mapping into one segment
A uniform random value \(r\) in \([0,1)\) is scaled and floored to land on one whole number between min and max.

Worked example

For Mega Millions (5 main numbers from 1-70 plus one Mega Ball from 1-25), suppose the random values 0.041, 0.260, 0.327, 0.668 and 0.985 are drawn for the main numbers. Applying \(n = 1 + \lfloor r \times 70 \rfloor\) gives 3, 19, 23, 47 and 69. A Mega Ball value of 0.700 gives $$1 + \lfloor 0.700 \times 25 \rfloor = 18.$$ The resulting play is 3 19 23 47 69 + [18].

FAQ

Do the same numbers come up if I re-run? No. Every submission draws fresh random numbers, so results change each time. This is expected behavior.

Does this improve my chances of winning? No. All lottery outcomes are random; quick picks have exactly the same odds as any other valid combination. This tool is for convenience and entertainment only.

Can I make my own game? Yes. Select "Custom configuration" and set the main count, range, uniqueness, and an optional special-ball pool to model almost any lottery format.

Last updated: