I Built a Lottery App That Refuses to Predict the Jackpot
Hot numbers and AI predictions promise a jackpot edge that does not exist. vietlott-lab computes Vietlott odds exactly, picks tickets that win any prize more often (23.01% against 22.06% for ten Mega tickets), and says on the pick screen that no pick changes the jackpot odds.
Key takeaways
- No choice of numbers changes the jackpot odds: ten distinct Mega 6/45 tickets win it 1 time in 814,506, whichever ten they are.
- Tickets that overlap less win some prize more often: 23.01% for ten picked Mega tickets against 22.06% for ten random ones.
- The odds are exact: the engine scores a ticket set against all 8.1 million possible Mega draws, as bitmasks.
- Over 1,274 past Mega draws the six hottest numbers matched 0.794 per draw, against 0.800 for any fixed six.
- Each tool in the Built with AI series has an honesty line: the thing it says plainly it cannot do, held by a test or a screen.
Contents
FAQ
Can vietlott-lab predict the next Vietlott draw?
No. Every draw is independent and every combination is equally likely. The app says so, and tests hot and cold numbers on past draws to show they do not help.
What does the ticket picker improve, then?
The chance that at least one of your tickets wins some prize, by making the tickets overlap as little as possible. The jackpot odds and the expected loss stay the same.
When does a Vietlott ticket break even?
For Mega 6/45, only at a jackpot of about 78 billion VND, and that ignores sharing the jackpot. At the minimum jackpot, ten tickets costing 100,000 VND return 26,960 VND on average.
Sources
Only you and the owner see your answer and rating. Send private feedback
Enjoyed it? Support fx-blog with a coffee.
Related posts
One Skill Folder That Works in Every Coding Agent
agent-skills keeps each skill as one folder in the open Agent Skills format, installs it where Claude Code, Codex, Copilot, Cursor and Gemini CLI look, fails it in CI when it breaks a rule, and ships checks such as check_email.py that can fail.
An AI Meeting Assistant That Never Hears the Audio
Meeting Capture has no audio input: it reads Windows Live Captions, so speech recognition stays on the PC. Press a key when a question starts; a second press or a 2-second pause sends it, and an answer you can say out loud starts in about 0.8 seconds.
A Spider Crawls Over My Screen and Remembers What It Read
Screen Spider is a Windows screen capture app: a hotkey reads the screen with on-device OCR, a spider walks the exact lines it read, only that text goes to Claude, and each read becomes a searchable note. Windows on the blocklist are never captured.
Comments
Oldest firstNo comments yet. Start the conversation.
Which ten Mega 6/45 tickets give you the best shot at the jackpot? Any ten. Ten distinct tickets win it with probability 10 in 8,145,060, whichever ten they hold.
So vietlott-lab, a Python CLI with a VS Code panel for Vietnam's Vietlott games, says that on the screen where you pick. Then it improves the one thing a pick can improve.
Built with AI, five tools built with an AI coding agent, one post each:
Not covered: prompting and model choice.
Every tool in this series has an honesty line
You can read each of the five the same way:
For vietlott-lab it is short. No pick changes the jackpot odds.
What ten tickets can buy
Less overlap. Two tickets that share four numbers tend to win on the same draws, so
vlott picksearches for the set of N tickets most likely to win any prize:Exact means every possible draw
The engine scores your tickets against all 8.1 million Mega draws, or 29 million for Power 6/55. No simulation.
Tickets and draws are bitmasks, so matches are
popcount(ticket & draw), run by numpy over every draw at once. The VS Code panel only runsvlott --json, so every number on screen comes from the tested Python code.The hot-number test was allowed to fail
Hot numbers are the oldest promised edge. Before each of 1,274 past Mega draws,
vlott statstakes the six numbers drawn most so far and counts how many the draw contained:Across 1,374 draws the frequency test gives p = 0.88: no evidence of bias.
Try it
Python 3.10 or later:
Limits: history comes from a public mirror (vietlott.vn refuses connections from outside Vietnam), and the prize tables in
games.pyneed checking against vietlott.vn. Play only with money you can afford to lose.Every draw checked, and the jackpot line printed beside the pick: that is the part to look for in any odds tool. The honesty line held because every number came from my own CLI. Part 2 starts from input I don't control: whatever is on my screen. When an AI reads it, what may leave the PC, and how would you know?
Read this with your AI