Lottery Number Generator
Generate a random set of unique lottery numbers and see your true jackpot odds.
Include bonus ball
You have a 1 in 13,983,816 chance of matching all numbers
- 1
Falling factorial (N × ⋯ × (N − k + 1))
49 × 48 × ⋯ × 44 = 10,068,347,520 - 2
k! (factorial divisor)
6! = 720 - 3
Jackpot odds: 1 in C(N, k)
10,068,347,520 ÷ 720 = 13,983,816
How does this calculator work?
This tool draws k unique random numbers from a pool of 1 to N with no repeats, optionally adds a bonus ball, and shows your jackpot odds as 1 in C(N, k). For a 6-from-49 game that is 1 in 13,983,816. It is a fair quick pick; no combination is luckier than another.
Formula
How this is calculated
Enter how many numbers you want to pick (k) and the size of the number pool (N), where balls are numbered 1 through N. Optionally add a bonus ball drawn from the remaining N−k numbers. The generator draws k distinct values without replacement by inserting random integers into a set until it holds k unique numbers (a rejection-sampling form of the partial Fisher–Yates shuffle), guaranteeing no duplicates, then sorts them ascending for display.
The jackpot odds are the number of equally likely combinations, C(N, k) = N! / (k!·(N−k)!), so your chance of matching every main number is 1 in C(N, k). For the classic 6-from-49 game that is 1 in 13,983,816. The bonus ball, when enabled, is selected from the numbers not already drawn, mirroring how many real lotteries pick a supplementary ball from the same pool.
Inputs must be whole numbers with k ≥ 1 and k ≤ N; a bonus ball additionally requires at least one leftover number (N − k ≥ 1). Each draw is independent and uniformly random, so this tool only produces "quick picks" — it cannot improve your odds, which are fixed by N and k alone.
Frequently asked questions
No. Every combination is equally likely, so a random quick pick has exactly the same odds as any other valid ticket — 1 in C(N, k).
No. The main numbers are drawn without replacement, and the bonus ball is taken from the remaining pool, so every number on your ticket is unique.
Set k and N to your game. For UK Lotto use k = 6, N = 59; for a 6-from-49 game use k = 6, N = 49, then enable the bonus ball if your game has one.
Also known as
TG we-Calculate Editorial Team. (2026). Lottery Number Generator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/lottery-number-generator
TG we-Calculate Editorial Team. "Lottery Number Generator." TG we-Calculate. 2026. https://we-calculate.com/calculator/lottery-number-generator.
TG we-Calculate Editorial Team, "Lottery Number Generator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/lottery-number-generator
@misc{wecalculate_lottery_number_generator, title = {Lottery Number Generator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/lottery-number-generator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
