Random Number Generator — pick a truly random number
Set any minimum and maximum, choose how many numbers to draw, and get results from true cryptographic randomness — never predictable Math.random. Unique or duplicate draws, integers or decimals, with sum, average and median calculated instantly. Nothing is uploaded, logged or stored.
Your random numbers
Drawn on load — click Generate for a fresh set.
History — this tab only
Your most recent draws, kept only in this page's memory. Reload or close the tab and they're gone — by design.
Pinned draws — favorites for this session
Pin any draw from the history above to keep it handy while you work. Pins live only in this tab's memory — nothing is stored in your browser or sent anywhere.
Your tools — this session
Star a generator to pin it as a favorite, and tools you open from here appear under Recently used. Both lists exist only in this tab's memory and clear when you close or reload the page.
Favorite tools
No favorite tools yet — tap the star on any tool above to pin it here for this session.
Recently used
No tools opened yet this session — tools you open from the rail above will be listed here.
Examples library — ready-made draw setups
Load a setup, then hit Generate. Each one applies the range, count and mode for a common job.
Lottery 6 from 49
Six unique numbers from 1–49, sorted low to high — the classic lottery ticket pick.
Two dice (2d6)
Two independent 1–6 rolls, duplicates allowed — a board-game dice pair without the dice.
Percentile roll
One number from 1–100 — a d100-style roll for tabletop games, sampling and A/B splits.
Giveaway winner pick
One winning entry number out of 500 numbered entries — adjust the maximum to your entry count.
Classroom random order
Every student number from 1–30 drawn exactly once, in draw order — a fair presentation or reading order.
Decimal probabilities
Five values between 0 and 1 with 2 decimal places — probability-like inputs for models and tests.
How to generate a random number
- Enter the smallest and largest values you want to draw from — for example 1 and 100.
- Choose how many numbers to generate, and whether repeats are allowed.
- Click Generate. Copy the results or download them as a text file, and check the live sum, average and median below.
Worked example — reading a draw
Every draw is different — that set is just one of the astronomically many possible outcomes. What never changes is the odds: in a 1–100 draw, each individual number has exactly a 1 in 100 (1%) chance on every single pick, whether it came up in the last draw or not. Past results never make a number “due.”
Duplicates vs. unique numbers — which do you need?
| Mode | How it behaves | Best for |
|---|---|---|
| Duplicates allowed | Each number is drawn independently; repeats can appear, like rolling the same die twice | Simulations, sampling with replacement, dice-style rolls, random test data |
| No duplicates (unique) | Every number in the set is different, like dealing cards without replacement | Lottery picks, raffle and giveaway winners, random seating or draw order |
Common uses
- Lottery and raffle picks — set the range to the ticket pool, turn on No duplicates, and use the 6-from-49 Quick pick.
- Giveaways and contests — number the entries, draw one unique winner (or several, in draw order).
- Decisions and games — 1–10 for a quick pick, two 1–6 draws as dice, or 1–100 as a percentile roll.
- Sampling and testing — random rows, test values, A/B splits and classroom examples, up to 1,000 numbers at a time.
- Decimals for measurements — switch to Decimals for values like a random 0.00–1.00 probability or a 2.50–9.50 reading.
What to do with your numbers next
A draw is often the start of a job, not the end of one. The “Send results to…” bar under your numbers carries them as text into the next tool, so a typical workflow takes seconds: draw 20 unique numbers here, send them to the Text Sorter to order them, or paste a whole draw into the CSV to JSON converter to turn it into data for a script. Lottery picks and giveaway winners often go to the Word Counter or Character Counter for a quick count check, and a single 1–2 draw can be re-rolled as a coin flip in the Coin Flip or a pair of dice in the Dice Roller. Pin the draws you want to keep comparing in the session panel above — they stay in this tab only, and the downloadable cheat sheet lists the range to use for each common job.
Frequently asked questions
How does this random number generator create randomness?
It uses crypto.getRandomValues, the browser's cryptographically secure random number generator — the same entropy source operating systems use for security work. Integers are picked with rejection sampling, so every value in your range is exactly equally likely and there is no modulo bias. It never uses Math.random, which is a predictable pseudo-random generator.
Can a number appear more than once?
That is up to you. With duplicates allowed (the default), each draw is independent, so repeats can happen — just like rolling the same die twice. Turn on “No duplicates (unique numbers)” and every number in the set is different, like dealing cards without replacement. Unique mode needs at least as many values in the range as numbers you ask for.
How many numbers can I generate at once?
Up to 1,000 per draw. The results appear as a grid you can copy in one click or download as a text file, and the statistics — count, sum, average, median, smallest, largest and range — update instantly for the whole set.
Can I generate decimal numbers?
Yes. Switch the type to Decimals and choose 1 to 10 decimal places. The generator then draws values evenly across the whole span between your minimum and maximum — for example between 0 and 1 with 2 places for a random percentage-like value, or between 2.5 and 9.5 for measurements.
Can I use it for lottery numbers or giveaway draws?
Yes — that is one of its most common uses. For a typical lottery pick, set the range to the lottery's number pool (for example 1 to 49), ask for as many numbers as the ticket needs (for example 6), and turn on “No duplicates”. The Quick pick presets include a 6-from-49 lottery draw. Because the randomness is cryptographic, no result is more or less likely than any other.
What is the biggest range I can use?
Minimum and maximum can be any values from −1,000,000,000,000,000 to 1,000,000,000,000,000 (one quadrillion), including negative ranges such as −50 to 50. If the minimum is accidentally larger than the maximum, the tool swaps them automatically and tells you.
Are my numbers stored or sent anywhere?
No. Numbers are generated entirely in your browser and are never uploaded, logged or stored on a server. The on-page history exists only in this tab's memory and disappears when you close or reload the page.
Can I send my drawn numbers to another tool?
Yes. The “Send results to…” bar under your numbers carries them as text into tools like the Text Sorter, CSV to JSON, JSON Formatter, JSON Validator, Word Counter and Character Counter, so you can keep working without re-typing. The numbers travel in the link itself on your device — they are not uploaded to a server.
Are my pinned draws and favorite tools saved?
No — pinned draws, favorite tools and the recently used list live only in this tab's memory and disappear when you close or reload the page. Nothing is written to browser storage, and nothing you generate is sent to a server.
Related generator tools
About this tool
The Random Number Generator is one of 33 free utilities in the Online Utilities Suite at dev.conversiontools.online. Every tool runs entirely in your browser — nothing is uploaded, stored or tracked — so every draw is instant and private.
Privacy
This page draws numbers locally with your browser's secure random generator: no account, no uploads, and nothing you generate is stored or sent to a server. The history list lives only in this tab's memory. Advertising on this site is served by Google AdSense, which may use cookies to personalize ads; you can opt out of personalized advertising in your Google ad settings.