Integer Range Generator

Set a floor, set a ceiling, pick how many random integers you need. Unique draws skip duplicates inside the window. Copy comma-separated values or read sum and average in the panel.

Draw settings

Whole numbers only. Min must sit below max.

1 to 1000 per batch

Output

Updates as you change settings.

Count0
Span-
Sum0
Mean0
Adjust settings or press Roll integers.

An integer range generator answers one narrow question: which whole numbers inside a closed interval should I pull right now? Order stays random until you flip the sort toggle. Each draw rides on JavaScript Math.random, not a seeded PRNG.

Sequential lists solve a different job

Need every integer from 10 through 50 in order? The Number List Generator prints the full ladder with a step size. Random range picks are for when you want five lottery balls from 1-49, not the entire ticket grid printed out.

Same inputs, opposite intent.

One tool walks the staircase. This one throws dice on each step.

Unique draws vs independent rolls

With unique mode on, each integer leaves the pool after selection. A batch of six unique values from 1-6 always permutes the whole set. Turn unique off and 4 might appear three times in one batch because every roll ignores history.

Sort ascending only rearranges the batch you already drew. The underlying random order disappears from the display, but the values stay the same.

Independent rolls bias toward repeats on small spans. Drawing 10 integers from 1-5 with unique off often shows clustered duplicates. The pattern is expected, not a bug in the generator.

QuestionInteger range generatorCount Numbers in Range
Output typeFresh random integersHow many existing values sit inside one window
InputMin, max, batch sizePasted list plus one min-max pair
Typical useRaffle picks, QA seeds, classroom drillsDistribution check on survey scores

Reading the live sum and mean row

The stats panel updates on every roll, not only after you press Roll integers. Sum answers how heavy the batch feels in total. Mean shows the center of gravity for the draw you just took.

Neither stat predicts the next roll. A mean of 50 after five picks from 1-100 tells you what happened once, not what comes next. For spread or variance on a pasted list, switch to Number List Statistics after you copy the batch out.

Span in the stats row mirrors your min-max fields, not the smallest or largest chip on screen. A draw from 1-100 might show 3, 87, 42 without touching either bound. The span label still reads 1 to 100 because those were the walls you set.

Where a random integer batch shows up

Copy format and downstream paste

Copy list writes comma-separated values: 14, 3, 91, 3, 55. Excel splits on commas when you paste into a single column if you use Paste Special. Google Sheets often needs Data → Split text to columns after a comma paste into one cell.

For newline-separated output, paste into a text editor, find comma, replace with newline. A dedicated line-per-value export is not on this page because most QA scripts expect CSV-style commas.

Closed interval: both endpoints count

Min and max are inclusive. A span from 1-10 includes both 1 and 10. There is no open-interval toggle here. If you need strict between behavior, shift bounds by one before rolling or filter the pasted output afterward.

Zero is a valid min, max, or interior value. A span from -5 to 5 includes negative, zero, and positive integers in one pool.

Fairness limits worth stating upfront

Math.random suits classroom picks and test data. Do not use output here for cryptographic keys, payment tokens, or lottery audits where regulators expect hardware entropy.

Negative bounds work: a span from -10 to 10 includes zero. Decimals are rejected because the fields coerce to integers. The cap is 1000 integers per batch; widening the span does not raise the cap.

Nothing uploads. Parsing, rolling, copy, and the live stats row all run inside your tab. A batch of 1000 chips still paints the DOM, so expect scroll lag on low-end phones before the math fails.

Seeded reproducibility is also missing. Reload the page, get a different batch with the same settings. For deterministic sequences, use Number Sequence Generator or script your own seed in code.

After a draw, Sort Numbers reorders a pasted list you already own. Number List Statistics adds variance once the batch is large enough to mean something. Remove Duplicate Numbers strips repeats when unique mode was off during the roll.

Integer range generator questions

Practical answers for random integer batches.

What is the maximum batch size?

One thousand integers per generation. Lower the count or split into multiple batches when you need more values.

Why does unique mode error on a wide count?

Unique draws stop above the integer count in the span. A range from 1 to 20 holds 20 values, so asking for 25 unique picks returns an error instead of partial output.

Are negative minimum and maximum allowed?

Yes. A span from -50 to -1 never includes positive values. Zero sits inside any range whose bounds cross or include zero.

Does sort change which numbers were drawn?

No. Sort only reorders the batch on screen. The same integers appear, listed low to high.

Is output cryptographically secure?

No. The page uses Math.random in the browser. Use a dedicated CSPRNG for secrets, tokens, or regulated lottery draws.

Does my data leave the browser?

No. Generation, stats, and clipboard copy run in JavaScript on your device. Nothing is sent to a server.