Random Number Generator
← All toolsSet a minimum and maximum and draw a number — or several at once. Turn on “No repeats” to draw a unique batch, like numbers for a raffle, or allow decimals for a precise random value in a range.
How to use the Random Number Generator
- Enter a minimum and maximum value.
- Set how many numbers to draw at once, from 1 to 20.
- Optionally turn on “No repeats” for a unique batch, or “Allow decimals” for a non-whole-number result.
- Click “Generate” — each result rolls briefly before settling on its final value.
FAQ
- Is every number in the range equally likely?
- Yes — integers are drawn with crypto.getRandomValues using rejection sampling, which removes the small bias a naive modulo approach would introduce, so every whole number in your range has an equal chance.
- What happens if I ask for more unique numbers than fit in the range?
- The tool tells you the range doesn't contain enough whole numbers for the batch you asked for, rather than silently repeating a value or failing quietly.
- Can I generate decimals, like a price or a measurement?
- Yes — turn on “Allow decimals” and choose 1 or 2 decimal places; the result is a random value anywhere in your range rather than only whole numbers.
- Can I share the exact range I set up?
- Yes — “Copy link” encodes your minimum, maximum and count into the URL so anyone opening it starts from the same setup.