Uniform random integers in a range you set
The generator produces whole numbers (no decimals) between Min and Max inclusive on both ends. Both bounds accept any integer from -1,000,000 to 1,000,000, so a range of -50 to 50 works the same as 1 to 100. Count sets how many integers you get back, from 1 to 1000, one per line.
Each value is computed as floor(random() * (max - min + 1)) + min, which is the standard inclusive-bounds formula. Both endpoints have the same probability as any other value in the range.
For coin-style 50/50 picks use the coin flip. For die rolls with a custom number of sides use the dice roller. For UUIDs or string IDs use the UUID generator or random string generator.
How to use random number generator
- 1Open the tool. The input panel can be left empty.
- 2Set Min and Max in the option panel (any integers from -1,000,000 to 1,000,000).
- 3Set Count from 1 to 1000.
- 4The output panel shows that many integers, one per line.
- 5Click Copy to grab the list.
Keyboard shortcuts
Drive TextResult without touching the mouse.
| Shortcut | Action |
|---|---|
| Ctrl F | Open the find & replace panel inside the input Plus |
| Ctrl Z | Undo the last input change |
| Ctrl Shift Z | Redo |
| Ctrl Shift Enter | Toggle fullscreen focus on the editor Plus |
| Esc | Close find & replace, or exit fullscreen |
| Ctrl K | Open the command palette to jump to any tool Plus |
| Ctrl S | Save current workflow draft Plus |
| Ctrl P | Run a saved workflow Plus |
What this tool actually does
Inclusive range on both ends
Both Min and Max are reachable values. A range of 1 to 6 produces 1, 2, 3, 4, 5, or 6 with equal probability.
Negative bounds work
Min and Max accept any integer from -1,000,000 to 1,000,000. So -10 to 10 draws from 21 possible values including zero.
Bulk count up to 1000
Set Count from 1 to 1000. Each draw is independent; the same value can appear more than once in the output.
Whole numbers only
No decimals. If you need a fraction, generate an integer in the largest range you need and divide afterwards.
Browser-only
Generation runs in JavaScript via Math.random(). Suitable for fixture data, dice rolls, picks for raffles. Not cryptographic.
Worked example
Five integers in the range 1-100, one per line. Each draw is independent so duplicates can appear in larger batches.
Min: 1 - Max: 100 - Count: 5
42 7 91 3 58
Settings reference
| Option | Effect on output |
|---|---|
| Min | Lower bound, inclusive. Default 1, minimum -1,000,000, maximum 1,000,000. |
| Max | Upper bound, inclusive. Default 100, minimum -1,000,000, maximum 1,000,000. |
| Count | How many integers to emit. Default 10, minimum 1, maximum 1000. |
| Distribution | Uniform across the inclusive range. |
| Output format | One integer per line, no thousands separators. |
| Random source | Math.random(). Not cryptographic. |
FAQ
Are Min and Max both reachable?
floor(random() * (max - min + 1)) + min, which is inclusive on both ends.