Skip to content
Sage Draws

How the generator works

No black box, no proprietary algorithm, no secret sauce. Here is the whole method, including the parts that do not help.

The one-paragraph version

Sage Draws picks numbers using your device’s cryptographic random number generator, then throws away lines whose shape looks nothing like a real draw and lines that huge numbers of other players would also pick. That second filter is the only part with a genuine benefit, and the benefit is not a better chance of winning — it is a smaller chance of splitting a jackpot if you do.

Step 1: Actual randomness

Numbers come from the platform CSPRNG (crypto.getRandomValues), not from Math.random. For a lottery picker this is arguably overkill, but a generator with a predictable seed would be a genuinely bad thing to hand people, and the cost of doing it properly is nil.

Where a strategy weights some numbers above others, selection uses Efraimidis–Spirakis weighted sampling without replacement. No number is ever weighted to zero, so every combination remains reachable in every mode.

Step 2: Shape constraints

Real draws have a characteristic shape. They are usually a mix of odd and even, spread across the pool rather than clustered, and their total lands in a broad middle band. A line of 1–2–3–4–5 is exactly as likely as any other specific line, but it does not look like a draw, and — more importantly — tens of thousands of people play it.

So the generator produces a candidate, scores it against the historical distribution for that specific game, and tries again if it fails. Concretely it prefers an odd/even and low/high split from the range covering about 85% of past draws, a total between the 10th and 90th percentile, no run of three or more consecutive numbers, no arithmetic sequence, and numbers spread over at least three parts of the pool. You can see all of these on any game’s statistics page.

To be completely clear: this does not raise your chance of winning. A constrained line and an unconstrained line are equally likely. It makes the ticket look like a plausible draw and keeps it out of the most crowded combinations.

Step 3: Avoiding the crowd — the only real edge

This is the part that genuinely matters, and almost nobody explains it.

Jackpots are shared. If four people hold the winning line, they each get a quarter. And human number choices are wildly non-uniform: an enormous share of tickets are built from birthdays and anniversaries, which means numbers 1 through 31 are picked far more often than 32 and above. Sequences, diagonal patterns on the play slip, and “lucky” numbers like 7 are similarly over-picked.

Choosing numbers the crowd avoids does not change your probability of winning by even a fraction of a percent. It changes the expected value of a win, because you are less likely to be dividing it. That is a real, defensible, mathematically sound reason to prefer some lines over others — and it is the only one on this page.

Step 4: The strategies, and which are honest

BalancedDefensible

Picks uniformly at random, then keeps only lines whose odd/even split, low/high split and total fall inside the range that covers the bulk of actual past draws. It also skips all-calendar lines and long runs. Your odds are identical to any other line — this just avoids tickets that would be unusual as a draw and heavily shared as a pick.

ContrarianDefensible

Deliberately leans on numbers above 31 and rejects sequences, repeated patterns and date-shaped lines. Millions of players pick birthdays and anniversaries, so those combinations get split many ways when they hit. This does not raise your chance of winning by even a fraction — it raises what a win would be worth.

Hot numbersFolklore

Weights selection toward the numbers drawn most often in the current number pool. Popular with players who believe machines run warm. Worth saying plainly: draws are independent, so a number appearing often in the past has exactly the same chance next time as one that has not.

Cold & overdueFolklore

Weights selection toward numbers that are both rarely drawn and longest absent. This is the gambler's fallacy in its classic form — a number is not 'due' — but it is the most requested profile after hot, so it is here, honestly labelled.

Pure randomDefensible

A straight uniform draw with no filters and no weighting, exactly like the retailer's Quick Pick. Mathematically it is every bit as good as the others at winning. It is the honest baseline the rest are measured against.

Why hot and cold numbers do not work

A lottery draw is independent of every draw before it. The machine does not know that 17 came up last week, and the balls do not keep score. This is not a matter of opinion or of insufficient data; it is what independence means.

You can see it in our own numbers. On every game, the most extreme number in the archive sits only about two to three standard deviations from the expected average — precisely the spread you get from fair random draws across dozens of numbers. If a machine were genuinely biased, that figure would grow steadily as draws accumulated. It does not.

The hot and cold options exist because people look for them and would otherwise use a site that presents them as insight. Here they are labelled as folklore everywhere they appear, including on the button you press.

Where the data comes from

Ongoing results are imported from the California Lottery’s own published draw-results feed on calottery.com, checked several times a day. The historical archive that the statistics are built on combines that feed with New York State’s official open-data publication of Powerball and Mega Millions (both are drawn once nationally, so the results are identical) and published year-by-year archives for the four California-only games.

Statistics are always computed only over draws that used the game’s current number pool. Games change their matrix from time to time — Powerball went to 69 main numbers in 2015, Mega Millions changed its bonus pool in 2025 — and counting across a change would produce nonsense.

Results here are unofficial and can be delayed or wrong. Only the California Lottery can confirm a winning ticket.