Random Number Generator
Random numbers
- 48
- 89
- 72
- 21
- 2
5 numbers generated between 1 and 100, with no duplicates.
What this calculator does
The Random Number Generator produces whole numbers between a minimum and a maximum. You choose how many numbers to generate and whether duplicates are allowed. It is useful for simulations, games, sampling, and quick decisions.
How to use this calculator
- Enter an integer minimum and maximum.
- Enter how many numbers you need (1 to 1,000).
- Check "No duplicate numbers" if every result must be different.
- Click Calculate.
Formula
Each value = minimum + floor(random × (maximum − minimum + 1))
When unique values are requested, the generator samples without replacement and stops if the requested count is larger than the range.
What the results mean
The default settings generate five whole numbers from 1 to 100 with no duplicates. Click Calculate again to generate a new set.
Assumptions and limitations
- The result uses the browser's
Math.random, which is not cryptographic. - Use a dedicated cryptographic tool for passwords, keys, or security tokens.
- The maximum range size is limited to safe integer values.
- The calculator does not use a server-side seed or remote random service.
Frequently asked questions
Are the numbers truly random?
No. Browsers use a pseudo-random generator that is suitable for games and general simulations, but not for cryptographic security.
Why can't I generate more unique numbers than the range contains?
Unique values cannot repeat. A range of 1 to 5 contains only five possible values, so asking for six unique numbers is impossible.
Can I generate decimal numbers?
This version generates whole numbers only.
Source
Reference: Random Number Generator.
Math Calculators
- Scientific Calculator
- Fraction Calculator
- Percentage Calculator
- Percent Error Calculator
- Random Number Generator
- Exponent Calculator
- Binary Calculator
- Hex Calculator
- Half-Life Calculator
- Quadratic Formula Calculator
- Log Calculator
- Ratio Calculator
- Root Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Rounding Calculator
- Matrix Calculator
- More Math Calculators