How to use the Random Number Generator
Pick a random whole number between a minimum and maximum, including both limits. Set your range and generate instantly. The controls and result are provided on one page so the task can be completed without an account or uploading the input.
When and why to use it
Use it when you need one whole number inside a defined inclusive range.
Example
Set 1 and 100 to draw a number for a classroom exercise or game.
Step-by-step instructions
- 1
Enter the smallest allowed whole number in Minimum and the largest in Maximum. Both endpoints are included.
- 2
Select Generate numbers to draw one integer. For a roll from 1 to 6, enter 1 and 6.
- 3
Copy the result or generate again. Each draw is independent, so the same number can appear twice.
How randomness and fairness work
The generator uses browser cryptographic randomness and rejection sampling to avoid modulo bias. Every integer in a valid inclusive range has the same chance. For 1 through 10, each number has a 1 in 10 chance on each draw.
Limitations
Bounds must be whole numbers inside JavaScript's safe-integer range.
Questions about the Random Number Generator
Are the minimum and maximum included?
Yes. With Minimum 1 and Maximum 10, any integer from 1 through 10 can appear. The range contains 10 possible results.
How do I generate numbers from 1 to 100 or 1 to 1000?
Set Minimum to 1 and Maximum to 100 or 1000, then select Generate numbers. The initial range is 1 to 100.
Why did I get the same number twice?
Each click starts a new independent draw. Previous results are still eligible. Use the Unique Number Generator to avoid duplicates within a batch.
Can I generate negative numbers or decimals?
This tool accepts negative whole-number bounds. Use the Decimal Number Generator when you need fractional values and control over displayed decimal places.