The controls on the row
Min and Max are number boxes that ship at 1 and 100. Count is a dropdown offering 1, 5, 10, 20 or 50 with 1 preselected, and a Unique checkbox picks the drawing method. Generate writes one integer per line into a read-only box whose corner holds a Copy button feeding the clipboard. If Min is larger than Max the two are swapped before anything is drawn, so reversed bounds still produce a valid range instead of an error.
How each mode draws
With Unique off, every draw takes the floor of a random value multiplied by the range size, max minus min plus one, then adds min, so each integer in the closed range has equal odds and repeats are allowed. With the box checked the page builds a pool holding every integer from min to max, pulls a random index, splices that entry out and repeats until the count is reached, which guarantees distinct results. When the pool is smaller than the count it refuses outright, printing Error: Range too small for unique values and drawing nothing.
A worked example
Leave the defaults and press Generate: you get one integer from 1 to 100 inclusive, each value carrying a one in a hundred chance. Switch Count to 10 without Unique and you receive ten independent lines that may repeat. Check Unique with Count 20 over 1 to 100 and the twenty rows are all different. Now set Min 1, Max 5, Count 20 with Unique on: the range holds only 5 values and 5 is below 20, so the box shows the error sentence instead of numbers.
Where it stops
- Draws come from Math.random, a pseudo-random source, which suits games and sampling but not secrets or audit-grade selection.
- The Unique mode allocates one pool entry per integer, so a range like 1 to 10000000 with Unique on can stall or crash the tab.
- Fields pass through whole-number parsing with a fallback: decimals are truncated, an emptied or zero Max quietly becomes 100, and a cleared Min becomes 0.
- Count stops at 50 from the dropdown, so larger batches need several runs pasted together.
Questions people ask
Can it give me the same list twice?
No seed exists, so every press of Generate is a fresh draw; two identical lists would be chance, not reproducibility.
Does it handle negative numbers?
Yes. Min accepts negative whole numbers, and the swap rule keeps the interval valid whichever way you enter the bounds.
Dice Roller covers fixed six-sided draws, and Secure Token Generator is the page to use when randomness needs to be unguessable.