ledger365

Random number generator

Draw numbers from a range for a raffle, a sample, a team split or a lottery line. Repeats can be turned off so the same number never appears twice.

How to use the random number generator

  1. Set the lowest and highest value.
  2. Choose how many numbers to draw.
  3. Turn off repeats for a draw, or leave them on for independent rolls.

How it works

Numbers come from crypto.getRandomValues, the browser's cryptographically secure random source, rather than Math.random. The range is inclusive at both ends, so 1 to 100 can produce both 1 and 100.

With repeats disabled the tool draws without replacement, like pulling tickets from a hat, and caps the count at the size of the range.

Common questions

Is this random enough for a prize draw?

It uses the same random source browsers use for cryptography, which is far stronger than a typical pseudo-random function.

Can I use it as a dice roller?

Yes — set the range to 1–6 and the count to the number of dice.

Related tools