Random Number Generator

Generate random integers within any range.

About the Random Number Generator

Generate up to 100 random integers from an inclusive range for drawings, test data, classroom activities or unbiased selections.

How to use it

  1. Enter the minimum and maximum integer values.
  2. Choose how many numbers to generate.
  3. Allow duplicates or require every generated value to be unique.

Random selection logic

The generator uses crypto.getRandomValues and rejection sampling to avoid modulo bias. Both the minimum and maximum values can be selected.

Unique number limit

When duplicates are disabled, the requested quantity cannot exceed the number of integers in the range. For example, 1 through 5 can provide at most five unique results.