Random Number Generator
Generate random numbers in any range — whole or decimal, unique or with repeats, one or many at once. In your browser.
Press Generate to get a random number.
Up to 1,000 numbers at once. Order is auto-fixed if the minimum is above the maximum.
Generated in your browser with crypto-strong randomness — nothing is uploaded. Not for passwords or security keys.
Frequently asked questions
How do I set the range?
Enter a minimum and a maximum — both ends are included, so 1 to 6 can return 1 or 6. If you enter them in the wrong order, the tool swaps them for you.
Can I generate numbers with no repeats?
Yes — turn on the Unique option and every number in the batch will be different. You can't request more unique whole numbers than the range contains; the tool will tell you if you do.
Is this good for passwords or security?
No. It uses your browser's cryptographic random source for fair, unbiased results, but it's meant for games, draws, sampling, and testing. For passwords, use the Password Generator, which is designed for that purpose.
Is my data uploaded to a server?
No. Everything runs in your browser — nothing you enter or generate leaves your device and nothing is stored or sent anywhere.
Which browsers are supported?
We recommend the latest Chrome, Firefox, Safari, or Edge. Tools require a modern browser with JavaScript enabled.
Random number generator — free and private
Need to pick a winner, roll a die, draw a lottery line, or grab a batch of random values for a test? This generator produces random numbers in any range you set, one at a time or hundreds at once, with options for whole numbers or decimals and for keeping every result unique. It runs entirely in your browser, so nothing you enter or generate is uploaded.
Set a minimum and maximum, choose how many numbers you want, press Generate, and copy any result — or all of them — with a tap. Press Generate again for a fresh draw.
Setting the range and count
The range is just the minimum and maximum you enter, and both ends are included — a range of 1 to 6 can return 1 or 6, exactly like a die. You can use negative numbers and, in decimal mode, fractional bounds too. If you happen to put the larger number in the minimum box, the generator quietly swaps them rather than erroring, so the order you type them never matters.
The count is how many numbers to produce in one go, up to 1,000. Ask for one and you get a single large number; ask for several and they appear as a list you can copy individually or all together, which is handy for seeding test data, assigning entries, or drawing multiple winners.
Unique numbers vs. repeats
By default each number is drawn independently, so the same value can come up more than once — which is correct for things like dice rolls, where repeats are natural. Turn on Unique and every number in the batch is different, which is what you want for a raffle or a lottery draw where no entry should be picked twice.
There's a natural limit to uniqueness: you can't draw more unique whole numbers than the range contains. Asking for 10 unique numbers between 1 and 5 is impossible — there are only five — so instead of looping forever or crashing, the tool tells you plainly and you can widen the range or lower the count.
Whole numbers and decimals
Whole-numbers mode returns integers, which suits dice, lotteries, and picking a row or item by number. Switch it off to allow decimals and choose how many decimal places you want — from a couple for a percentage to several for a simulation. Decimal ranges use the exact bounds you set, so a range of 0 to 1 with three decimal places returns values like 0.482 or 0.917.
How random are the numbers?
The numbers come from your browser's cryptographic random source (crypto.getRandomValues), not the weaker Math.random, and the selection uses rejection sampling so there's no bias toward one end of the range. In practical terms that means an honest, even spread — every number in the range is equally likely.
That said, this is a general-purpose generator for games, draws, sampling, and testing — not a tool for passwords, security tokens, or cryptographic keys. If you need a strong password, use the Password Generator, which is built for that job. And if you want to turn a result into a shareable code, the QR Code Generator can help.
Common uses
A random number generator is useful far beyond rolling dice: drawing raffle and giveaway winners, assigning teams or turn order, picking a lottery line, choosing a sample from a numbered list, generating placeholder or test data, settling a decision fairly, or running a quick probability experiment. The unique option and adjustable count cover most of these in a single step.
Works on your phone
The generator is built mobile-first. The range and count fields open the numeric keypad, the toggles for unique and whole-numbers are large and easy to tap, and the Generate button spans the width of the screen. Results show in a monospaced font so digits line up, and copying is a single tap. Because everything runs locally, it responds instantly with no connection needed.
Privacy: your numbers never leave your device
The range you set and the numbers you generate are handled entirely in your browser. Nothing is uploaded, nothing is stored on a server, and there is no account to create. When you close the page it's all gone, because it was never sent anywhere in the first place.
Frequently asked questions
How do I set the range?
Enter a minimum and a maximum — both ends are included, so 1 to 6 can return 1 or 6. If you enter them in the wrong order, the tool swaps them for you.
Can I generate numbers with no repeats?
Yes — turn on the Unique option and every number in the batch will be different. Note you can't request more unique whole numbers than the range contains; the tool will tell you if you do.
Is this good for passwords or security?
No. It uses your browser's cryptographic random source for fair, unbiased results, but it's meant for games, draws, sampling, and testing. For passwords use the Password Generator, which is designed for that purpose.
Is my data uploaded to a server?
No. Everything runs in your browser — nothing you enter or generate leaves your device, and nothing is stored or sent anywhere.
Related tools
More free tools you might need
QR Code Generator
Create customizable QR codes with colors, logos, and batch processing
Open toolPassword Generator
Generate strong random or memorable passwords in your browser — cryptographically secure, nothing uploaded.
Open toolLorem Ipsum Generator
Generate lorem ipsum placeholder text by paragraphs, sentences, or words, with optional HTML tags. In your browser.
Open toolBarcode Generator
Generate scannable linear barcodes — Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14 — and save as PNG or SVG. In your browser.
Open toolPDF Compressor
Compress PDFs in your browser — keep text selectable or maximum compression. Private, nothing uploaded.
Open toolPDF to JPG
Convert PDF pages to JPG, PNG, or WebP images
Open tool