Generate integers inside an explicit inclusive range
Set integer minimum and maximum values, choose a quantity, and decide whether repeats are allowed. Both endpoints shown in the form are eligible.
Concrete input and output example
Set minimum 10, maximum 15, quantity 4, and Unique on. The output contains four different integers drawn from 10, 11, 12, 13, 14, and 15; their order is also random.
How the result is produced
The browser supplies unsigned random values. In repeat mode each draw maps uniformly to the inclusive range; unique mode uses a sparse partial shuffle so memory follows the requested count rather than the whole range.
Limits and checks
- Minimum, maximum, and quantity must be safe integers; quantity is capped at 1,000.
- Unique quantity cannot exceed the count of integers in the chosen range.
- The supported range width is bounded by the 32-bit entropy mapping; invalid or extreme ranges produce a validation message.
Local data boundary
Bounds and results are kept in component memory and are not saved to the site's server or this tool's localStorage. Copying a result places it under your clipboard's control.
Questions about this tool
- Is the maximum included?
- Yes. A range of 1 to 6 can return 1, 2, 3, 4, 5, or 6.
- What changes when Unique is enabled?
- A number is removed from the remaining pool after selection, so it cannot repeat within that result.
- Can I generate decimal numbers?
- No. This interface accepts safe integers only.
Content and implementation reviewed: