Lottery Number Generator

Free lottery number generator. Pick a set of unique, sorted random lottery numbers from any range (e.g. 6 from 1โ€“49), with optional seed for reproducible picks.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent โ€” no API key needed.

API docs
โ€”
Set your range and generate.

How lottery number generator works

A lottery number generator picks a set of unique numbers at random from a defined range, mimicking a quick pick. Most lotteries draw a fixed count of numbers without replacement from a pool โ€” for example, 6 numbers from 1 to 49 โ€” so the generator must ensure no repeats within a single ticket.

This generator uses a Fisher-Yates partial shuffle to pick unique numbers fairly: it shuffles the pool of all numbers in the range and takes the last "count" of them, then sorts the result for display. Every number in the range has an equal chance of being picked, and no number can appear twice in one set.

Enter how many numbers you want, the lowest number, and the highest number. The generator returns that many unique numbers from the range, sorted ascending. The API also accepts a seed for reproducible picks, useful for sharing or verifying a draw. It cannot generate more numbers than exist in the range.

Frequently asked questions

How are the numbers chosen?
A Fisher-Yates shuffle over the full range, then the chosen count are taken and sorted. Each number has an equal chance, and numbers are unique within a set โ€” exactly how a lottery quick pick works.
Can I pick 6 numbers from 1 to 49?
Yes โ€” that is a common lottery format (e.g. Canada's Lotto 6/49). Set count to 6, lowest to 1, and highest to 49, and the generator returns six unique sorted numbers.
Does using a generator improve my odds?
No. Every combination has the same probability of winning. A generator only ensures a fair, unbiased random pick โ€” it does not change the underlying odds of the lottery.
What if I ask for more numbers than the range?
The generator reports an error, because it cannot produce more unique numbers than the pool contains. Asking for 5 numbers from 1 to 3 is impossible and will be rejected.