Integer Range Generator

Draw whole numbers from a preset range, with an option to make every number in the batch unique.

Integers10 generated
  1. 96
  2. 48
  3. 52
  4. 90
  5. 55
  6. 10
  7. 85
  8. 93
  9. 87
  10. 49
Runs locally in your browser

About the Integer Range Generator

Ten ranges cover the cases people actually ask for: dice sized 1 to 6, a d20 range, percentages, lottery style 1 to 49, three digit and four digit spans, and a plain 0 to 9 for single digits. Every draw uses crypto.getRandomValues rather than Math.random, so the numbers come from the browser's cryptographic source and no seed or pattern repeats between visits.

The No repeats switch changes what the tool is. Left off, each number is an independent draw and duplicates are normal, which is what you want when simulating dice or picking test values. Turned on, the batch becomes a sample without replacement, which is what a raffle or a lottery draw needs. Ask for more unique numbers than the range holds and the list simply stops early, since there is nothing left to draw.

Distribution is uniform across the range, including both endpoints. If you need an arbitrary range such as 37 to 412, the Random Number Generator takes typed bounds, and for a fixed width numeric string with leading zeros allowed the Random 4 Digit Number Generator is the closer fit.

How to use

  1. Pick the range you want from the Range menu.
  2. Set how many numbers to draw, up to 200 at a time.
  3. Turn No repeats on for a raffle style draw without replacement.
  4. Press Generate, then Copy the column into your sheet.

Common questions

Are both endpoints included?
Yes. A range of 1 to 100 can return 1 and can return 100, and every value between is equally likely.
What happens if I ask for more unique numbers than the range holds?
The list stops when the range runs out, so 1 to 10 with repeats off returns at most ten numbers.
Is this random enough for a prize draw?
It uses the browser cryptographic random source, which is far stronger than a spreadsheet formula, and is fine for informal draws.
Can I set my own minimum and maximum?
Not here, the ranges are fixed presets. Use the Random Number Generator when you need arbitrary bounds.