Skip to content
Results from New York State open data · updated Dec 5, 2026, 3:17 PM ET18+ · Independent reference · No ticket sales
ToolFor fun

Lottery number generator

Draws a random line for any game using your browser's cryptographic random source. A random line has exactly the same chance as any other line.

This tool needs JavaScript.

This is entertainment, not a system. No generator, pattern or statistic improves the odds of a lottery draw. The generator does not use past results and does not suggest that you should play.

How the lottery number generator works

Pick a game and the generator makes a random selection that fits its rules: the right count of numbers from the right pool, plus the extra ball where the game has one. Each set comes from your browser's cryptographic random source. Like a quick pick, it gives you a line you did not choose yourself. Nothing is stored and nothing is sent anywhere.

Some people use a random selection instead of choosing numbers by hand. Others just want to see what a random set of lottery numbers looks like next to the ones they usually play. Draw as many lines as you like: each new selection is independent of the last one, and none of them is more or less likely to match a draw than any other set.

What a line is up against

Our arithmetic from each game's published number pools.

GameA line isSize of the game
Powerball5 numbers from 1 to 69 plus 1 Powerball from 1 to 26292,201,338 possible combinations: C(69,5) x 26
Mega Millions5 numbers from 1 to 70 plus 1 Mega Ball from 1 to 24290,472,336 possible combinations: C(70,5) x 24
New York Lotto6 numbers from 1 to 5945,057,474 possible six-number combinations: C(59,6)
Take 55 numbers from 1 to 39575,757 possible five-number combinations: C(39,5)
Pick 1010 numbers from 1 to 801 in 8,911,711 chance that all ten chosen numbers are among the twenty drawn: C(80,10) / C(20,10)
Numbers3 digits, each from 0 to 91,000 possible three-digit results, 000 to 999: 10 x 10 x 10
Win 44 digits, each from 0 to 910,000 possible four-digit results, 0000 to 9999: 10 x 10 x 10 x 10