Generate lottery quick picks
Real game rules for Powerball, Mega Millions, UK Lotto, EuroMillions, or any custom N-of-M draw with optional bonus ball. Numbers are drawn without replacement using crypto randomness.
Pick 5 of 1–69.
+ 1 Powerball from 1–26.
Numbers drawn without replacement. Tap Quick pick for a fresh ticket.
Tap Quick pick
How quick picks work
Each draw shuffles 1..M and takes the first N. Bonus balls are drawn from their own pool, so they can overlap with main numbers (matching real game rules).
- 01
Pick a game
Powerball, Mega Millions, UK Lotto, EuroMillions, or Custom.
Inputs are treated as UTF-8 throughout the pipeline and validated client-side as you type — nothing dispatches until the value is well-formed.
presetinpututf-8client-sidevalidatedgame · textpowerball · set5 of 69 + 1 of 26
loaded · parsedclient-side - 02
Configure
Custom mode lets you pick N from M with an optional bonus pool.
Each toggle re-computes through a memoised hook, so flipping options never resets your input and the UI stays snappy on large inputs.
customoptionslivememoisedtogglesrules · memoisedn/m · livepick 6 of 49
options set · memoisedlive - 03
Quick pick
Without-replacement draw produces a sorted ticket.
Randomness — where used — comes from
crypto.getRandomValues, neverMath.random. Heavy work sits inuseMemo.drawcomputeinstantlocaldeterministicdraw · instantsorted · computed07 · 11 · 23 · 45 · 58 + 12
computed · instantinstant - 04
Copy or re-pick
Save the ticket or pull again until you like the line.
Copy writes through
navigator.clipboardand downloads use aBlob— zero network traffic. Same input plus same options always yield the same bytes.exportcopydownloadzero-networkreproducibleok · copiedready · copiedCopied
shipped · ready to shipsuccess
Pro tips for everyday utilities
Reach for crypto.getRandomValues
Cryptographically random for IDs, tokens, salts. Math.random is for animation and games, not security.
Mock data with seeds
Faker-style libraries can be seeded so tests are reproducible. Embed the seed in the fixture file.
Reference cards beat memory
Cheatsheets for Vim, Git, Docker, Linux signals are faster than man pages when you’re mid-flow.
Browser APIs vary
Touch events, gamepads, and clipboard differ across vendors. Feature-detect before use.
Persist in the right place
localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data.
When to roll a quick pick
Office pools, party games, raffles, demos.
Office pool
Lottery night with the team without picking favorites. Random values come from crypto.getRandomValues — cryptographically secure for tokens, salts, and session IDs. Math.random is deterministic enough for animations but predictable enough to be a security bug.
CSPRNG-backedRaffle simulator
Pull winning numbers for a small in-house raffle. Pair with hashids, ULID, or UUID v7 when you need both random and sortable — useful for primary keys, public-facing IDs, and event log ordering without a sequence column.
reproducibleMath class
Demonstrate combinations and probability with live picks. Output is deterministic given the same seed, so fixtures and tests stay reproducible across CI runs and contributor machines. Embed the seed in the fixture file for full replay.
snappyTest fixtures
Deterministic-ish input for QA scenarios. Heavy work runs through useMemo so the UI stays snappy on large inputs. Same input + same options yields identical bytes — the kind of stability snapshot tests rely on.
feature-detectedGame night
Use as a lucky-numbers card for bingo or trivia. Storage tools persist to the right backend: localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data. Pick the right shelf and quota worries disappear.
deterministicPersonal lucky
Spin five different tickets at once for fun. Browser feature detection: clipboard, fullscreen, gamepad, and Web Bluetooth APIs gracefully fall back when unavailable. No surprise white screens on Safari or older Firefox.
production-readyFrequently asked questions
Something missing?
Tell us what you need. We ship the top requests every two weeks.