Home Everyday Life Random Number Generator

Random Number Generator

A truly random whole number between any minimum and maximum you choose.

Advertisement

How it works

Enter the smallest and largest values you want; every whole number between them, both included, has an equal chance. The draw uses your browser's cryptographic random source, the same quality used for security keys, not a simple arithmetic formula. Change an input or reload for a new draw.

Advertisement

Formula

Every integer from minimum to maximum has the same probability:
1 ÷ (maximum − minimum + 1).
With 1 to 100 that is 1 in 100 for every value.

Example

Example in plain words. A number between 1 and 100.

There are 100 possible values, each equally likely.

One draw might give 57; the next draw is fully independent.

Frequently asked questions

Is it really random?

It uses the crypto-grade random source built into the browser, which passes the standard statistical tests and is unpredictable, unlike the common Math.random.

Can I draw decimal numbers?

This generator draws whole numbers. For decimals, draw a large integer and divide, for example by 100 for two decimals.

Advertisement

Related calculators

Age Calculator

Exact age in years, months and days, plus days until your next birthday.

Date Difference Calculator

Days, weeks, months and business days between two dates.

Tip Calculator

Tip and split the bill between any number of people.

Discount Calculator

The price after a percent discount and how much you save.