Math Calculator

Random Number Generator

Generate random integers between a minimum and maximum. Enter your values, get an instant result in your browser, and read the formula, an example and the limits below.

✓ Formula, example and assumptions shown on this page

Random Number Generator

Result

Generated Numbers—

How the range works

The minimum and maximum define the interval. Both endpoints can be generated. You can ask for several numbers and tick the option for unique numbers only.

Example

With a minimum of 1 and a maximum of 6, each result is an integer from 1 to 6, like a die roll. With 'unique numbers only' and a count of 5 between 1 and 10, no number repeats.

Fairness and security

The tool uses the browser's pseudo-random generator. It is fine for casual selection and demonstrations. Do not use it for passwords, cryptographic keys, regulated lotteries or financial draws.

Avoiding invalid ranges

Enter whole-number bounds with the minimum not greater than the maximum. For unique numbers the range must contain at least as many values as you request.

Frequently Asked Questions

Are both the minimum and maximum possible?

Yes. Both endpoints can appear.

How do I avoid repeated numbers?

Tick 'Unique numbers only'. The range must contain at least as many values as you request.

Is it safe for passwords or lotteries?

No. It uses the browser's ordinary random generator and is meant for casual picks and demonstrations.