Random Number Generator

Whole numbers drawn uniformly from any inclusive range. Set Min, Max, and Count; the output panel fills with that many integers, one per line. Negative bounds are allowed (down to -1,000,000), as are positive bounds up to 1,000,000. Need decimals? Generate integers and divide. Need dice? See the dice roller.

Input
Line 1:1 LF cloud_done Saved locally
Result Random Number
0 lines 0 chars

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

  1. 1Open the tool. The input panel can be left empty.
  2. 2Set Min and Max in the option panel (any integers from -1,000,000 to 1,000,000).
  3. 3Set Count from 1 to 1000.
  4. 4The output panel shows that many integers, one per line.
  5. 5Click Copy to grab the list.

Keyboard shortcuts

Drive TextResult without touching the mouse.

Shortcut Action
Ctrl FOpen the find & replace panel inside the input Plus
Ctrl ZUndo the last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor Plus
EscClose find & replace, or exit fullscreen
Ctrl KOpen the command palette to jump to any tool Plus
Ctrl SSave current workflow draft Plus
Ctrl PRun 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.

Input
Min: 1 - Max: 100 - Count: 5
Output
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?
Yes. The formula is floor(random() * (max - min + 1)) + min, which is inclusive on both ends.
Can I get decimal numbers?
Not directly. Generate integers in a wider range and divide. For example, for two-decimal floats from 0 to 1, set Min 0, Max 100, then divide each output by 100.
What if Min is greater than Max?
The formula still runs but the range is empty. Set Min below Max for sensible output.
Is this random source good enough for a raffle?
For casual or non-binding picks, yes. For audited or legally-binding draws, use a system tool with a documented seed and a CSPRNG.
Why is the input panel ignored?
The numbers are drawn at random, not derived from your text. Only Min, Max, and Count drive the output.