Random Number Generator
Generate one or more random numbers in any range, using your browser's cryptographically secure random generator.
How to Generate Random Numbers
- Enter a minimum and maximum value to define your range.
- Enter how many numbers you want generated (up to 100 at once).
- Check or uncheck "Allow duplicate numbers" depending on whether repeats are okay.
- Click "Generate" to produce your numbers, then "Copy Results" to copy them as a comma-separated list.
Frequently Asked Questions
How random are the numbers this tool generates?
The generator uses your browser's crypto.getRandomValues() API — a cryptographically secure random number source — rather than the more predictable Math.random(), and it rejects biased values through rejection sampling to keep every number in range equally likely.
What happens if I ask for more unique numbers than the range allows?
If you uncheck the duplicate-numbers checkbox and request more numbers than exist in your min-max range, the tool shows an error telling you to widen the range, lower the count, or allow duplicates.
Can the minimum and maximum be negative or the same number?
Yes — the tool works with any minimum/maximum combination as long as minimum is less than or equal to maximum, including negative ranges.
How do I get a single random number instead of a list?
Set How many? to 1 — the tool generates exactly one number in your specified range and displays it as a single chip.
Does clicking Generate again produce a different set of numbers?
Yes, every click runs a fresh secure random draw, so results will typically differ from the previous generation, unless the range is small enough that repeats are likely.