Generate Random Digit Pairs
Generate random two-digit number pairs (00-99). Useful for lottery, games, and testing.
Pick a count, set the range, hit Generate — random two-digit pairs from 00 to 99 land in the output box, zero-padded and ready to copy. Flip on unique mode when you need a lottery draw or a bingo card with no repeats. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool grabs your count, min, and max values, then calls Math.random() for each pair. If unique mode is on, it keeps a set of already-used numbers and skips duplicates. Output gets zero-padded — so 3 becomes 03 — then joined by whichever separator you picked. Whole thing happens in JavaScript, right in the browser tab.
Examples
Quick Lottery Pick
Grab 6 unique numbers between 01 and 49 for a ticket.
Count: 6
Range: 01–49
Unique: Yes
Separator: Comma
07, 34, 12, 41, 29, 03
Bingo Card Numbers
A teacher needs 25 unique pairs for a classroom bingo game. The full 00–99 range works here since bingo cards use two-digit callouts.
Count: 25
Range: 00–99
Unique: Yes
Separator: Newline
58
04
73
91
36
... (25 total)
Test Data for a Form Field
You’re writing automated tests and need 50 random two-digit codes. Duplicates are fine — you actually want to verify your app handles repeats correctly.
Count: 50
Range: 10–99
Unique: No
Separator: Space
47 82 15 63 28 91 15 44 73 56 82 37 ... (50 total)
Who Uses This
Generate random callout numbers for board games, bingo, or raffle draws without writing any code.
Create bulk two-digit test data for input validation, mock APIs, or database seeding.
Build math worksheets, probability exercises, or pick random student numbers for classroom activities.
Quickly produce random sample codes to populate spreadsheets or test data pipelines.
Common Mistakes
If your range is 10–20 (only 11 possible values) and you request 50 unique pairs, there simply aren’t enough. Widen the range or lower the count.
The tool auto-swaps these values, so it won’t break. But if your output looks off, double-check that you didn’t accidentally flip the fields.
This tool always outputs two digits — 03, not 3. If you need single-digit formatting, strip the leading zero after copying. Most lottery and bingo systems expect the padded format though.
Technical Details
- Processing: 100% client-side JavaScript
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Pairs: 500 per generation
- Range: 00 to 99 (customizable min/max)
- RNG: Math.random() — good for games and testing, not cryptographic use
Frequently Asked Questions
What is a digit pair?
A two-digit number from 00 to 99. Single digits get a leading zero, so 5 shows up as 05. You’ll see this format in lottery tickets, bingo cards, and test datasets where consistent width matters.
Is this random enough for security purposes?
No. The generator uses Math.random(), which is a pseudo-random number generator. It works great for games, simulations, and test data. For passwords or encryption keys, you’d want a cryptographically secure source like window.crypto.getRandomValues().
Can I generate more than 100 unique pairs?
Only if your range supports it. The default range of 00–99 gives you exactly 100 possible values. Want more unique pairs? You can’t — there are only 100 two-digit combinations. You’d need to switch to a three-digit generator at that point.
Does this tool store my generated numbers?
Nope. Everything happens in your browser’s memory. The moment you close the tab or refresh the page, it’s all gone. Nothing gets sent to a server.
How do I use this for a lottery draw?
Set your range to match the lottery — say 01 to 49. Turn on unique mode so no number repeats. Pick the count (usually 5 or 6 numbers). Hit generate, and you’ve got a fresh set of picks. Do it a few times if you want multiple tickets.