ok.OK UtilityA LITTLE EVERYDAY MAGIC

Random Number Generator

Generate random integers between inclusive minimum and maximum values, with an optional no-repeats batch.

Make it your own

How to use Random Number Generator

Pick integers from an inclusive range, with optional uniqueness within the result batch. Negative endpoints are supported, and both the minimum and maximum are eligible results.

  1. Enter the minimum and maximum integers.
  2. Choose Quantity and enable No repeated numbers if the batch must be unique.
  3. Select Generate and review or download the sampled integers.

Example: Set minimum 1, maximum 3, quantity 3 and No repeated numbers on. The output contains 1, 2 and 3 in a random order.

How it works: Cryptographic rejection sampling avoids modulo bias across the integer range. A unique batch repeatedly samples until it has the requested number of different integers, so its quantity cannot exceed the range size.

Understanding the result

Both range bounds are eligible. A minimum of 1 and maximum of 6 represents six possible integers. When repetition is allowed, a new draw can produce a number already in the current batch.

With No repeated numbers selected, quantity cannot exceed the range's size. A range of 1 through 10 supplies at most ten unique values. A new batch does not remember earlier runs.

Both endpoints are included. No repeated numbers means sampling without replacement within this batch, and requires enough distinct integers in the range.

A calculation you can check

Minimum 10, maximum 12 and quantity 3 with uniqueness enabled must produce 10, 11 and 12 in some order; quantity 4 is impossible.

What to check before using the answer

  • A small random batch is not guaranteed to look evenly balanced.
  • An even distribution describes the sampling process over many trials, not a guarantee that a small batch will contain every possible outcome equally.
Does No repeated numbers cover future runs?

No. It prevents repeats within the current batch only; the tool maintains no cross-run draw history.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit