How the Lottery Works
Each Megapot ticket has 6 numbers:- 5 normal numbers - chosen from 1 to 30
- 1 bonusball - chosen from a dynamic range that changes each drawing
Dynamic Bonusball Range
You may notice the bonusball range changes from drawing to drawing. This is intentional and serves an important purpose.Why the Range Changes
The bonusball range adjusts based on the size of the prize pool:- Larger pool - Wider bonusball range, harder to hit the jackpot
- Smaller pool - Narrower bonusball range, easier to hit the jackpot
When the Range Is Set
The bonusball max is locked in the moment a new drawing begins, right after the previous drawing is drawn. Once set, it stays fixed for that entire drawing while tickets are on sale.How the Range Is Calculated
The goal is to make sure there are always enough possible ticket combinations to back the prize pool being offered. It comes down to three numbers: 1. How many combinations a single bonusball value provides. With 5 normal balls chosen out ofnormalBallMax options, each bonusball value opens up this many combinations:
C(n, 5) is “n choose 5” — the number of ways to pick 5 balls from n.)
2. How many tickets need to exist to support the prize pool. This depends on the prize pool, the ticket price, and the target edge:
normalBallMax- the number of options for each normal ball (currently 30, so players pick 5 numbers from 1-30).prizePool- the size of the prize pool being offered for the drawing.ticketPrice- the cost of a single ticket.lpEdgeTarget- the target edge the backers keep on ticket sales, expressed as a fraction (e.g.0.3for a 30% edge).
Understanding Your Odds
Your odds depend on two factors:- Normal balls - Fixed range of 1-30, picking 5 unique numbers
- Bonusball - Dynamic range that changes each drawing
Calculating Odds

Prize tier probability formula
