Random Number Generator

This generator picks numbers within a chosen range for drawings, games, testing, or any decision that should not quietly favor a favorite.

The interactive random number generator loads right here. If it hasn't appeared, refresh the page.

Enter the minimum and maximum values, choose how many numbers to generate, and select whole numbers or decimals. Turn off repeats if each result must be unique.

For an inclusive uniform whole-number range, each integer has probability = 1 / (maximum - minimum + 1). A generated value can be represented as floor(random × (maximum - minimum + 1)) + minimum, where random is at least 0 and less than 1.

Worked example

Set the minimum to 1, the maximum to 50, and the quantity to 5 to draw five numbers. With repeats disabled, a possible result is 4, 17, 23, 38, and 46, with no number appearing twice.

Common questions

Can the minimum and maximum be selected?

Yes, an inclusive whole-number range allows both endpoints. In a range from 1 to 10, both 1 and 10 can appear.

Are the results truly random?

Most online generators use pseudorandom values produced by software. They are suitable for ordinary games and sampling, but not automatically suitable for passwords, encryption, or regulated drawings.

Related math tools

More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog