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.
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.
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.