Random Number Generator
Generate random whole numbers or decimals in any range — one number or a list of up to 1,000, with or without duplicates. Both the minimum and the maximum are included. Numbers come from your browser's Web Crypto random source and are mapped to your range with unbiased rejection sampling, so every possible value is equally likely. Nothing leaves your browser.
- Free to use
- No account required
- Generated in your browser
Random Number Generator
Was this tool helpful?
Good to know
- Useful for
- Picking a winner or a random order, games and classroom activities, rolling dice or flipping a coin, sampling items for testing or surveys, and creating test data.
- Accepts
- A minimum and maximum (integers, or decimals with up to 9 decimal places), a quantity from 1 to 1,000 and the Unique option
- Produces
- Exact random numbers in the order they were drawn, to copy (one per line) or download as random-numbers.txt or random-numbers.csv
Privacy
Numbers are generated in your browser. Your ranges and results aren't sent to a server, analytics or an AI service, aren't saved in browser storage, cookies or the page address, and disappear when you reload the page.
Limitations
- Integer endpoints can be from −9,007,199,254,740,991 to 9,007,199,254,740,991. Decimal endpoints can be from −1,000,000,000 to 1,000,000,000, with no more decimal places than you selected — nothing is rounded for you.
- Decimal mode draws from an evenly spaced grid at the chosen precision (for 2 places: 0.00, 0.01 … 1.00), not from a continuous range of real numbers.
- Unique lists can't be longer than the number of possible values in the range; you'll see an error instead of a shorter list.
- Web Crypto provides cryptographically strong pseudorandom numbers. This isn't a certified lottery, an independently auditable public draw or a tool for creating encryption keys or passwords.
Tips
- For a coin flip, decide in advance which side 0 and 1 stand for.
- Use Unique numbers to draw several winners or a random order without repeats, for example 1 to 30 with 30 unique numbers.
- With Unique off, the same number can come up twice in a row — that's what genuinely random draws do.
How to generate random numbers
- Pick a preset, such as 1 to 100 or a six-sided die, or enter your own range.
- Choose Integers or Decimals; for decimals, choose 1 to 9 decimal places.
- Enter the minimum and maximum (both included) and how many numbers you want, from 1 to 1,000.
- Tick Unique numbers if no value may repeat.
- Press Generate. Press Generate again for a new draw, then copy the numbers or download them as TXT or CSV.
Frequently asked questions
How do I use the random number generator?
Enter a minimum and a maximum — both can be drawn — choose how many numbers you want and press Generate. You can also start from a preset such as 1 to 100 or a six-sided die. Press Generate again for a new draw. Your numbers stay on screen until you generate again or change a setting.
Can I generate random numbers between 1 and 100?
Yes. That's the default: minimum 1, maximum 100. Both 1 and 100 are included, so each of the 100 numbers has the same chance of being drawn. You can use any whole-number range, including negative numbers and 0.
Can I generate multiple random numbers at once?
Yes. Set How many numbers to anything from 1 to 1,000 and the numbers appear in the order they were drawn. With Unique numbers off, values can repeat within the list, and a new draw can match an earlier one by chance.
How can I generate unique random numbers without duplicates?
Tick Unique numbers. Each value then appears at most once and the list comes out in random order. The values are chosen with Floyd's sampling algorithm and shuffled with Fisher–Yates, so every set is equally likely and huge ranges never need to be listed in memory. If you ask for more unique numbers than the range contains, you'll see an error.
Can I generate random decimal numbers?
Yes. Choose Decimals and 1 to 9 decimal places. The generator picks from every value at that precision with equal probability — for 0 to 1 with 2 places, that's 0.00, 0.01 and so on up to 1.00 — and always shows exactly that many decimal places. Endpoints can't have more decimal places than you selected; they aren't rounded.
How does the generator avoid biased random numbers?
It uses your browser's Web Crypto random source rather than Math.random, combines two 32-bit random values into one 64-bit value, and uses rejection sampling: values from the incomplete top portion of the 64-bit range are discarded and redrawn. That removes the bias that a simple remainder (random % range) would create, so every number in your range is equally likely.
Can I copy or download my generated numbers?
Yes. Copy puts the numbers on your clipboard, one per line. Download TXT saves random-numbers.txt with one number per line, and Download CSV saves random-numbers.csv with a number header. The files are created in your browser, and the numbers are written exactly as shown.
Are my random numbers and settings stored or uploaded?
No. Everything happens in your browser. Your settings and numbers aren't uploaded, logged, sent to analytics or saved in browser storage, cookies or the page address. Reloading the page clears them.
Related converters and calculators
Related guides
- 6 min readWhy Your Calculator Gives the Wrong Sine: Degrees vs. RadiansGetting −0.988 for sin(30)? Your calculator is in radian mode. Spot the mix-up from the answer, switch mode or multiply by π/180, and avoid the same trap in spreadsheets and code.
- 8 min readUnix Timestamps in Seconds vs. Milliseconds: How to Tell Them Apart and ConvertA date in 1970 means seconds were read as milliseconds; a far-future year means the reverse. See which systems use which unit, tested examples, fractions, negative values, 2038 and missing offsets.
- 7 min readPercentage Change vs. Percentage Points: How to Tell Them ApartA rate rising from 4% to 5% is up 1 percentage point and 25% in relative terms. Tested examples for interest rates, basis points, risks and changes from 0.

