MultiConvers

Random Number Generator

Set a minimum and maximum, choose integers or decimals, then generate one number or a short list. Each press of Generate draws a new sample.

How it works

Integers are chosen uniformly from the inclusive range. A draw from 1 to 4 can be 1, 2, 3 or 4. Decimals are taken from the half-open interval [min, max).

The generator uses the browser’s Math.random — suitable for raffles, classroom examples and games, not for cryptography or lotteries that need a documented entropy source.

If you ask for integers but the range contains none (for example 1.2 to 1.4), there is no result.

Formula

Integer: uniform choice from ceil(min) through floor(max), inclusive
Decimal: min + u × (max − min), where u is a random value in [0, 1)

Worked examples

  • A die roll

    integers from 1 to 6, count 1 one of 1, 2, 3, 4, 5 or 6

  • Three classroom numbers

    integers from 1 to 30, count 3 three integers in that range

Useful notes

  • Results do not update as you type — press Generate so a new sample is intentional.
  • Count must be between 1 and 100.

FAQ

Are the numbers truly random?

They are pseudo-random numbers from the browser. That is fine for everyday picks. Do not use this page for security tokens or official drawings.

Is the range inclusive?

For integers, yes — both ends can appear. For decimals, the minimum can appear and the maximum is the exclusive upper bound.

Do the numbers leave my browser?

No. Generation runs locally and is not uploaded.

Related tools

See all Math tools.