← All tools
// Generator

Random Number Generator online

Generate random integers, decimals, or unique lists with custom ranges

Random Number Generator logo
by
CHUNKY
MUNSTER
// Output

How to Use the Random Number Generator

  1. Paste or enter your input into the text field.
  2. Configure any options (format, delimiter, encoding, or mode) using the controls above the output.
  3. The result updates instantly — no submit button required for most operations.
  4. Click Copy or Download to take the output to your next step.

Pick the output type (integer or decimal), the range, the count, and whether duplicates are allowed. Integers are sampled inclusively on both endpoints; decimals are sampled half-open on the upper bound (min ≤ x < max), matching the underlying Math.random() convention and keeping the distribution clean at the boundary.

How the Random Number Generator Works

Unique-output mode samples without replacement and is most useful for integer draws — for example, picking 6 distinct lottery numbers from 1–49. For continuous decimals, duplicates are already vanishingly improbable, so the unique flag rarely matters there. The underlying RNG is the browser's Math.random(): well-distributed and fast, but never use it for cryptographic purposes.

Frequently Asked Questions

Decimals: are they inclusive or half-open?

Decimals are sampled half-open on the upper bound: min ≤ x < max. That matches standard library behaviour (Math.random() returns [0, 1)) and avoids floating-point edge cases at the maximum.

How many decimal places can I get?

Up to 15 — the practical limit of IEEE-754 double precision. Beyond that the output starts running into rounding artefacts inherent to binary floating point.

What does "unique" mode do for decimals?

It removes the chance of a literal duplicate but is rarely useful: with continuous values, repeated draws are mathematically near-impossible anyway. Unique mode is mainly intended for the integer case (drawing N distinct integers from a smaller-than-comfortable range).

How big can the range be?

Up to Number.MAX_SAFE_INTEGER (2^53 − 1) for integers. Above that the result is mathematically random but loses one-to-one mapping to integers because of float precision.

Explore the full suite of Generator tools and 290+ other free utilities at Chunky Munster.