The formula
each whole number in the range is equally likely
Each number in your range has an equal chance of being picked. The generator uses your browser’s cryptographic random source. Turn repeats off to draw without replacement, like pulling numbered balls from a bag.
How to use this calculator
- Enter from.
- Enter to.
- Enter how many.
- Choose repeats.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Common questions
Are the numbers truly random?
They come from your browser’s cryptographically secure generator, which is unpredictable for all practical purposes.
How do I simulate a dice roll?
Set the range from 1 to 6. For two dice, generate 2 numbers with repeats allowed.