Random Number Generator

Generate a random number between your chosen minimum and maximum values.

Your random number will appear here

About the Random Number Generator

The Random Number Generator picks a whole number between the minimum and maximum values you set, including both of those numbers. Use it for games, lucky draws, classroom activities, picking a winner or making a quick unbiased choice.

How to use the Random Number Generator

  1. Enter the minimum number.
  2. Enter the maximum number.
  3. Click Generate to get a random number.

Frequently asked questions

Are the numbers truly random?

They come from your browser's random number function, which is fine for games and draws but not meant for cryptography or secure keys.

Can I get the same number twice?

Yes. Each click is independent, so repeats can happen.

How the Random Number Generator works

Enter a minimum and a maximum, then press the button. The tool returns a whole number between them, and both the minimum and the maximum are possible results. Every number in the range has the same chance of being picked each time.

The tool uses the browser's standard random function, which is excellent for games, draws and classroom use, but it is not designed for security.

Worked examples

With a minimum of 1 and a maximum of 100, you might get 47. Press the button again for a fresh result, such as 8 or 100.

With a minimum of 1 and a maximum of 6, the tool behaves like a die. A range of 1 to 2 works as a coin flip.

Tips and common mistakes

More questions about the Random Number Generator

Is the number really random?

It is generated by a pseudo-random algorithm in your browser. It is fair enough for games and draws, but not for cryptography.

Can I generate numbers without repeats?

Not directly. Draw again if you get a repeat, or use a shuffled list.

Is the maximum included?

Yes. Both the minimum and the maximum can be returned.

Can I use negative numbers?

Yes. For example, a minimum of −10 and a maximum of 10 is valid.

Related tools

← Back to all tools