Random Number Generator

Set a minimum and a maximum, and the tool picks numbers from that range, both ends included: whole numbers by default, or with 1 to 3 decimal places. Every possible value has the same chance.

Pick a random number between two values

Type the lowest number in Min and the highest in Max, then press Generate Number. It starts at 1 to 100. For a 1 to 10 pick, change Max to 10. Both ends can come up, and negative ranges such as -50 to 50 work.

Results are whole numbers unless you choose 1, 2 or 3 decimal places. In whole-number mode a typed decimal like 2.7 is cut to 2.

Several random numbers, with or without repeats

Raise Count to get more than one number. By default no number repeats, which suits raffle tickets or picking winners from 1 to 200. Count then cannot be bigger than the range: 10 unique numbers need at least 10 values between Min and Max.

Turn on Allow Repetition to let numbers come up again. Turn on Sort Results to list them smallest first. For 1 to 6 only, the Dice Roller is quicker. For game number sets, use the Lottery Number Generator. For names, use Wheel of Names.

How the numbers are chosen

The browser's secure random source is used. Draws that would favour some values are thrown away and redone, so each value has an equal chance. Everything runs in your browser, and nothing is sent anywhere. Your range settings and your last 20 draws are saved only in this browser so they are still there after a reload; Clear removes the saved draws.

Frequently asked questions

Can I generate random numbers without repeats?

Yes, that is the default. If Count is bigger than the range, such as 20 numbers from 1 to 10, you get an error until you widen the range or turn on Allow Repetition.

Can it use negative numbers or a huge range?

Yes. Min can be negative, such as -100 to 100, and the range can be very large.

Why are Allow Repetition and Sort Results greyed out?

They only matter for more than one number. Set Count to 2 or more and both switches work.