Random Number Generator

This free online random number generator creates one or more random whole numbers between any minimum and maximum value you choose. Optionally allow repeated values or generate a set of unique numbers, perfect for raffles, sampling, or quick games of chance.


How to Use the Random Number Generator

  1. Enter the lower bound in "Minimum Value" and the upper bound in "Maximum Value".
  2. Enter how many numbers to produce in "How Many Numbers to Generate".
  3. Check or uncheck "Allow duplicates" depending on whether repeated numbers are okay.
  4. Click "Generate" to see your random numbers appear as badges.

Frequently Asked Questions

It uses JavaScript's Math.random() scaled to your range with the formula Math.floor(Math.random() * (max - min + 1)) + min, so every whole number between the minimum and maximum has an equal chance of being chosen.

When checked, each number is generated independently and can repeat. When unchecked, the calculator shuffles every number in the range using a Fisher-Yates shuffle and takes the first values, guaranteeing no duplicates.

If duplicates are disallowed and the requested count is larger than the number of values in the range, the calculator shows an error telling you to reduce the count, widen the range, or allow duplicates.

Yes, it's completely free with no sign-up required.
No ratings yet — be the first!
Rate this calculator: