Random Number Generator
Pick random numbers in any range — set limits, count, unique mode, and sort. Free, crypto-secure, in your browser.
Number type
Sort results
Filter
Max 10,000 per batch
1–10,000
Sound
Your random number
—
Set your range and generate
Results
Click a number to copy it.
More than 20 numbers — text view only.
Recent generations
How to use the Random Number Generator
Four steps from range to copy-ready random integers.
- 1
Set your range
Enter lower and upper limits — for example 1 and 100 for a classic “pick a number” draw, or any custom integer span including negatives.
- 2
Choose count and options
Set how many numbers to generate (1–100). Toggle unique mode off for duplicates, pick a sort order, or use quick presets like 5 or 10.
- 3
Generate
Click Generate or press Space on desktop. Results appear instantly with cryptographic randomness — single large display or a copy-friendly grid.
- 4
Copy and revisit
Copy one number, copy all in comma/newline/JSON format, or click entries in the recent history row to grab past generations again.
What is a random number generator?
A random number generator picks unpredictable integers within limits you define — the digital equivalent of drawing slips from a hat, rolling fair dice, or asking a friend to “pick a number between 1 and 100.” People reach for random numbers constantly: classroom games, giveaway winners, split-the-bill tiebreakers, QA test data, Monte Carlo sketches, board-game moves, and “who goes first” decisions. A good generator removes bias, works instantly, and does not leak your inputs to a server. HitRandom’s tool runs entirely in your browser with cryptographically secure randomness, so you get fair integers without creating an account or waiting on a network round trip.
How it works: You set a lower limit and upper limit (inclusive on both ends), choose how many numbers to draw, and optionally disable duplicates or sort the output ascending or descending. Each click — or spacebar press on desktop — calls crypto.getRandomValues() with rejection sampling so every value in range is equally likely and modulo bias is avoided. Unique mode rejects repeats until the batch is full (or shuffles the entire pool when you request every number in the span). Results display as one large integer or a grid you can copy individually or in bulk as comma-separated text, one-per-line, or JSON.
Compared to basic pickers: Many “random number” pages hard-code a single range like 1–10 or 1–100 and offer only one result per click. That is fine for SEO landing pages, but real workflows need flexible limits, batch draws, and unique sets — the features random.org popularized for educators and facilitators. HitRandom combines that capability with a clean, distraction-aware layout: no login wall, no usage cap, and a rolling session history of your last ten generations so you can copy a previous draw without regenerating. Search terms like random number generator, pick a number between, random integer generator, unique random numbers, and crypto secure RNG describe this workflow.
When to allow duplicates: Independent samples — simulating ten dice rolls, ten lottery balls with replacement, or repeated A/B test seeds — should keep duplicates enabled. Each draw is unrelated. When to require unique values: Raffles, “pick five distinct students,” shuffled bingo calls, or dealing hands without repeated cards need unique mode. The tool validates that your count fits the range and explains the constraint in plain language instead of failing silently.
Sort options: Unsorted output preserves generation order — useful when order itself carries meaning (turn order). Ascending or descending sort helps readability when you copy results into spreadsheets or read them aloud. Sorting happens after generation and does not change the underlying fairness of the draw.
Use cases: Teachers running “pick a student number” activities; streamers running chat number games; developers generating test IDs within a bounded range; D&D groups rolling auxiliary d100 tables; facilitators assigning random breakout order; parents settling “who chooses the movie” disputes; analysts prototyping simulations with small batch samples.
Pair with: The Random Sequence Generator when you need every number in a range shuffled once (no repeats) — a full permutation instead of independent picks.
Privacy and limits: Everything executes locally. We do not store your ranges or results on HitRandom servers. Batch generation is capped at 100 numbers per click to keep the page responsive; run Generate again for additional batches. For legally regulated lotteries or high-value prizes, use processes with independent auditing — online generators are best for everyday fairness, not compliance-grade draws.
Who needs this: Anyone who wants a fast, honest random number picker with real controls instead of a single fixed range. Whether you need one integer or a unique set of twenty, sorted or raw, HitRandom delivers copy-ready results in one click — the universal generator every specialized “between X and Y” page will build on later.
Frequently asked questions
How random are the numbers?
Math.random(). Every integer in your range has an equal chance when duplicates are allowed.Can I generate multiple unique numbers?
What range limits can I use?
Is there a keyboard shortcut?
Does my data leave my device?
Related tools
More free tools — all run in your browser.
Coin Flip
Flip a coin online — heads or tails, one toss or up to 100. Crypto-secure, instant, private.
Dice Roller
Roll D4, D6, D8, D10, D12, D20, or D100 online — crypto-secure, with sum and stats, in your browser.
Random Date
Pick random dates in any range — day-of-week filter, bulk up to 1000, 14 date formats, optional time. Crypto-secure, no timezone drift.
Random Sequence
Shuffle a number range — each integer once in random order, crypto-secure.