Random generators

Random number generator

Choose integers from a certain interval; you can also have it generate them without repetition.

Your inputs

Your entered data stays in this browser. Changing the calculation does not upload the dataset.

Your result

Enter your values, then click "Calculate".

How this calculation works

Uniform integer selection uses rejection sampling

Before you interpret the answer

The inclusive range can contain at most 2³² possible integers. The requested number of unique draws cannot exceed the number of integers in that range.

Be sure to check the units of measurement and study design prior to applying the result. The calculation provides the answer to the question defined by its input parameters; it does not provide any evaluation regarding the validity of the original measurements.

Numerical methods and sources →

Related calculations

All calculators →