Random Number Generator

Generate random integers inside a range you choose.

Use the tool

Set the minimum and maximum values, then choose how many numbers to generate. The tool creates integers within the inclusive range and permits repeated results, which is useful for quick draws and classroom examples.

How random numbers are generated

The generator uses the browser cryptography API and rejection sampling to avoid modulo bias when mapping random values into the selected integer range. Both the minimum and maximum are included. Repeated numbers are allowed because each draw is independent.

  1. Enter a whole-number minimum and maximum.
  2. Choose how many results to generate, from 1 to 20.
  3. Select Generate to display the random integers.

Formula

Generated integer ∈ {minimum, …, maximum}

Worked examples

Example: one number from 1 to 10

Input
Minimum 1; maximum 10; count 1
Result
One integer from 1 through 10

The boundaries are inclusive, so both 1 and 10 are possible.

Example: five numbers from 100 to 999

Input
Minimum 100; maximum 999; count 5
Result
Five three-digit integers

Each result is generated independently, so duplicates are possible.

Frequently asked questions

Are the minimum and maximum included?

Yes. The range is inclusive, so the generator can return either boundary value.

Can the same number appear more than once?

Yes. Repeated results are allowed because each draw is independent. This is appropriate when each selection is made with replacement.

Can I generate decimal numbers?

This version generates whole numbers only. Enter integer boundaries to get a result in the requested range.

How many numbers can I generate at once?

You can request from 1 to 20 values in one run. Generate another set when you need more.

Is the random generator suitable for cryptographic keys?

Do not use this page as a key-management tool. Although it uses the browser cryptography API, security-sensitive keys should be generated and stored with a dedicated, reviewed process.

Last updated: