Lottery number generator

Set how many numbers and the highest number, and add bonus balls from a separate pool if the game uses them. Every combination has exactly the same chance.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter main numbers to draw, highest main number, bonus balls, highest bonus number and draw number.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Possible main combinations = C(N, k) = N! / (k! (N - k)!). With b bonus balls from M, the odds are 1 in C(N, k) × C(M, b).

Example

Inputs: Main numbers to draw = 6, Highest main number = 49, Bonus balls = 0, Highest bonus number = 10, Draw number = 1. Result: Main numbers: 6, 7, 19, 25, 41, 47; Bonus balls: None; Odds of matching all main numbers: 1 in: 13,983,816.

Limits and caveats

  • The numbers are random and do not improve your chances, since every combination is equally likely.
  • Check the game rules and whether it is legal where you live before playing.

Questions about this tool

Are some numbers luckier than others?

No. In a fair draw every combination is equally likely, whether it is 1 2 3 4 5 6 or a scattered set.

What are the odds in a 6 of 49 game?

One combination out of 13,983,816 possible ones.

How do I set up a game with a bonus ball?

Enter the number of bonus balls and their highest number, for example 1 from 26. They are drawn from a pool separate from the main numbers.