Random number generator
Draw one integer with equal chance for each value.
Formula
N = maximum − minimum + 1; reject biased random samples before selecting one of N integers.
How to use
- Set integer limits.
- Read the generated number.
- Press Generate again for another draw.
Examples
- Limits 1 and 6 describe a six-sided die.
Frequently asked questions
Are both limits included?
Yes. Limits 1 and 6 give six possible values. Equal limits always return that value.
Can numbers repeat?
Yes. Each draw is independent; this is not sampling without replacement.
Where is the number generated?
In your browser using Web Crypto. If secure randomness is unavailable, generation fails.
Sources
Updated: