Random Number Generator
Pick a random number between any two values, or generate a whole batch at once. Choose unique draws with no repeats, allow decimals, and sort the results — all generated privately in your browser.
Numbers are generated in your browser with the cryptographically strong crypto.getRandomValues API — nothing is sent to any server.
Understanding the Random Number Generator
The Random Number Generator picks random numbers between any minimum and maximum you choose. Generate a single number or a whole batch at once — up to 10,000 — and tailor the output to your task. Switch on "unique" to draw distinct numbers with no repeats (perfect for lotteries, raffles, and team picks), allow decimals with your chosen precision, and sort the results in ascending order. Every number is produced in your browser using the cryptographically strong crypto.getRandomValues API, so the output is high quality and nothing is ever uploaded to a server. Copy your results as a comma-separated list or regenerate instantly with one click.
How it works
You set three values — minimum, maximum, and how many numbers to generate — then pick any options. For each number the tool draws a 32-bit value from crypto.getRandomValues, divides it by 2^32 to get a fraction in [0, 1), then scales that fraction across your range. In integer mode it floors the result into evenly weighted whole numbers; in decimal mode it rounds to your chosen number of places. With "unique" enabled it keeps drawing until it has the requested count of distinct values, first checking the range is large enough and warning you if it is not. An optional ascending sort and a one-click copy finish the job — all client-side.
Worked example
Suppose you are running a giveaway with 50 entrants and need to pick 3 winners fairly. Set minimum to 1, maximum to 50, and how many to 3, then turn on "Unique (no repeats)" and "Sort results." Click Generate and you might get 7, 22, 41 — three distinct entry numbers in order, with no chance of the same person winning twice. Click Copy to grab "7, 22, 41" for your records, or Regenerate to draw a fresh set instantly.
Tips & common mistakes
- Use the "Unique (no repeats)" toggle for lottery draws, raffles, and picking winners so the same number never appears twice.
- If you ask for more unique numbers than the range allows (e.g. 10 unique numbers from 1–5), the tool warns you — just widen the range or lower the count.
- Turn on "Allow decimals" and set decimal places for prices, measurements, or simulations that need fractional values rather than whole numbers.
- Enable "Sort results" to get an ascending list, which makes large batches far easier to scan and verify.
- Set "How many" up to 10,000 to create test data, sample sets, or bulk picks, then copy them all as a comma-separated list in one click.
- To simulate a dice roll use min 1 and max 6; for a coin flip use min 0 and max 1; for a percentage use min 0 and max 100.
Related tools
How to Use This Generator
- 1Set your minimum, maximum, and how many numbers you want.
- 2Toggle unique, sorting, or decimals to match your need.
- 3Hit Generate, then copy or regenerate your numbers.
Frequently Asked Questions
Is this random number generator truly random?
It uses your browser’s built-in crypto.getRandomValues API, which produces cryptographically strong random values — far higher quality than the basic Math.random(). For everyday picks, draws, and games the results are effectively unpredictable.
Can I get unique numbers with no repeats?
Yes. Turn on the “Unique (no repeats)” toggle and every generated number will be distinct, just like a lottery draw or raffle. If your range is too small for the count you asked for, the tool tells you instead of looping forever.
Can I generate many numbers at once?
Absolutely. Set the “How many” field to any count up to 10,000. You can also sort the results in ascending order and copy them all as a comma-separated list with one click.