Random Number Generator

Choose a lower and an upper limit to generate one random whole number.

Whole numbers only. Both limits are included. Negative numbers are supported.

Result

Set your limits, then select Generate number.

What is a random number generator?

A random number generator selects a number from a range you choose. Use it for classroom activities, games, practice questions or choosing an item from a numbered list. For example, enter 1 and 20 to select one of 20 items.

How to use it

Enter the smallest allowed integer in Lower limit and the largest in Upper limit, then select Generate number. A range from 1 to 10 includes both 1 and 10. Equal limits always return that number; a range such as -10 to 10 also includes zero.

How the number is selected

The generator uses your browser's cryptographic random source. Each integer in the range has an equal chance of being selected. Generate again for another independent draw: previous results are not excluded, so the same number can appear twice.