One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Random Number Generator

Quick Answer

Set a minimum and maximum, choose how many numbers you want and press Calculate to generate a new set. Choose “unique” to avoid repeats, as in a lottery draw. The numbers come from a pseudo-random generator in your browser.

Result

Your 5 random numbers: 26, 60, 81, 97, 73

Sum337
Average67.4

Generated in your browser with a pseudo-random generator. It is fine for games, sampling and classroom use, but not for security or gambling.

About the Random Number Generator

Use it to pick winners, assign teams, sample data or make decisions. You can generate whole numbers or decimals to two places, set the range and decide whether the same number may appear more than once.

The generator is a standard pseudo-random number generator seeded when you press Calculate. It is suitable for games, classroom activities and sampling, but not for security keys, passwords or gambling, where a cryptographically secure source is required.

How to Use the Random Number Generator

  1. Enter the minimum and maximum.
  2. Choose how many numbers and the type.
  3. Choose whether repeats are allowed.
  4. Press Calculate to draw a new set.

Formula and Method

Uniform integer

min + ⌊random × (max − min + 1)⌋

Each value is equally likely.

Worked Example

Pick five numbers

Input: Range 1 to 100, 5 numbers

  • Press Calculate for a new draw

Result: Five numbers between 1 and 100.

Frequently Asked Questions

Is it truly random?

It is pseudo-random: statistically random but generated by an algorithm.

Can I draw lottery numbers?

Yes, choose whole numbers with no repeats, though results do not improve your odds.

Why do I see the same numbers on load?

The first display uses a fixed seed so the page is consistent; press Calculate for new numbers.

Is it safe for passwords?

No. Use a password generator that relies on a cryptographic source.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.