Generators

Random number generator

Draw random integers in an inclusive range, with or without repeats.

Make it yours

Processed in your browser

Your result

A little input. A useful result.

Adjust the example inputs, then select Generate numbers.

A LITTLE KNOW-HOW

About this tool

Generate integers between a minimum and maximum, including both endpoints. Cryptographic random bytes and rejection sampling avoid modulo bias, and the unique option draws without replacement.

How to use it

  1. 1

    Enter whole-number minimum and maximum bounds.

  2. 2

    Choose up to 1,000 results and decide whether they must be unique.

  3. 3

    Generate and copy the list of integers.

Questions, answered

Are both bounds included?

Yes. A range from 1 to 6 can produce 1, 2, 3, 4, 5 or 6. Equal bounds produce that one value.

What happens if I request too many unique values?

The tool asks you to reduce the count or widen the range. It cannot draw more unique integers than the inclusive range contains.