Random Number Generator

Set a minimum, a maximum and how many numbers you want, then press Generate to get random whole numbers, with or without repeats.

How to use it

Enter the lowest and highest number you will accept. Both ends are included. Choose how many numbers you want, from 1 to 1000, and press Generate. Press it again for a fresh draw.

Tick 'No repeats' when each number may appear only once, for example when drawing raffle tickets or picking lottery-style numbers. In that mode the count cannot be larger than the size of the range.

How it is calculated

The tool takes a random fraction between 0 and just under 1 from your browser's secure random source, multiplies it by the size of the range (maximum minus minimum plus one), rounds down, and adds the minimum. Every whole number in the range is equally likely.

For unique numbers in small ranges, the full list is shuffled with the Fisher-Yates method and the first numbers are taken. For very large ranges, numbers are drawn one at a time and any repeat is discarded.

Examples

Minimum 1, maximum 6, count 1 behaves like a six-sided die and returns one of 1, 2, 3, 4, 5 or 6.

Minimum 1, maximum 49, count 6, no repeats gives six different numbers between 1 and 49, such as 7, 12, 23, 31, 38, 44.

FAQ

Is the result truly random?

It uses the secure random generator built into your browser, which is suitable for games and draws, though this page is not certified for gambling or cryptographic keys.

Are the minimum and maximum included?

Yes. Both endpoints can be returned.

Can I generate negative numbers?

Yes. Set a negative minimum, for example -50 to 50.

Can I generate decimals?

No. This tool returns whole numbers only.

See also

Need to check how long a draw list is? Use BMI Calculator.

Want to see a number in binary? Try Age Calculator.

Splitting a prize pool with tax? See Days Between Dates.

For the maths behind probability, read Percentage Calculator.

Counting characters in a raffle entry? Open Tip Calculator.

Source: Reuters

More free tools