Lottery and Raffle Number Generator
GeneratorsEverything runs locally in your browser — nothing is uploaded
Set the pool size and how many numbers each ticket holds, then generate 1 to 20 tickets. By default no ticket repeats a number, drawn with a partial Fisher–Yates shuffle — even, and it does not slow down as the draw approaches a full pool. Numbers are zero-padded to the pool width (pool 49 gives 01, 02…) so columns line up. The important part: if the pool is too small (say 10 numbers but 12 picks), the tool errors out rather than handing back a ticket with repeats or fewer numbers than asked — which would look like a valid lottery entry when it is not. Everything runs in your browser.
Features
- Set the pool size (2–100) and numbers per ticket
- Generate 1 to 20 tickets at once
- Distinct numbers by default, via a partial shuffle
- Zero-padded numbers aligned to the pool width
- Optional sorting of each ticket
- A seed reproduces the exact same set
- Errors clearly when the pool is too small, instead of repeating numbers
- Frequency of each number across all tickets
How to use
- Set the pool size (draw from 1 to N)
- Set the numbers per ticket and the number of tickets
- Optionally sort each ticket, or allow repeats
- Results and the frequency table appear immediately
FAQ
- What if the pool has 10 numbers but a ticket needs 12?
- It errors out and explains why. Distinctness is a promise: if it cannot be kept, say so — never quietly return a ticket with repeats, or fewer numbers than asked for.
- How is each number given the same chance?
- The distinct draw uses a partial Fisher–Yates shuffle: start with 1..pool, swap the current position with a random one at or after it, for k steps, then take the first k. Every step is uniform, and it does not degrade near a full pool.
- What does allowing repeats mean?
- With it on, every number in a ticket is drawn independently, so repeats can appear. That suits raffles where the same entry can win twice, and differs from lottery rules.
- Is anything uploaded?
- No. It is all computed in memory in your browser, no request is made, and it works offline.
Related tools
Random Number Generator
GeneratorsGenerate random integers or decimals with a chosen range, count and decimal places, plus deduplication, sorting and binary, octal or hex output.
Random Picker
TextPaste a list and draw a few entries at random, using the browser’s cryptographic random source, with optional deduplication and list ordering.
3D Card Flip
StylingAdjust the axis, duration and perspective, preview the 3D card flip and copy the CSS, with the three key properties called out.
UUID Generator
GeneratorsGenerate a column of UUID v4, v7, ULID, NanoID or MongoDB ObjectId values, one per line, ready to paste into a spreadsheet. Runs in your browser.
Lorem Ipsum
GeneratorsGenerate placeholder text as Latin lorem ipsum, English sentences, Chinese or Japanese filler, in paragraphs, sentences or words — all in your browser.
Mock Data
GeneratorsDescribe your fields once and get realistic mock records, exportable as JSON, CSV, TSV, SQL, XML, YAML or TOML. All generated in your browser.