AllKit

Random Number Generator — Any Range, Crypto-Secure

100% freeRuns in your browserNo sign-up

About the Random Number Generator

Set a range (say 1 to 100) and how many numbers you need, and this generator draws them using the browser's cryptographically secure random source — the same quality of randomness used for encryption keys, not the predictable Math.random.

A no-duplicates mode turns it into a lottery-style drawer: every number in the range appears at most once, perfect for raffles, classroom picks, giveaway winners or sampling without replacement.

How to use the Random Number Generator

  1. Enter the minimum and maximum of your range (inclusive).
  2. Choose how many numbers to draw and whether duplicates are allowed.
  3. Click Generate.

How random is it?

Values come from crypto.getRandomValues with rejection sampling, so every number in your range has exactly equal probability — no modulo bias toward lower values.

Frequently asked questions

Is the result fair enough for a giveaway or lottery?

Yes — the crypto random source with unbiased sampling gives every value equal odds, and no server is involved, so nobody (including us) can influence the draw.

Are min and max included?

Yes, both endpoints are inclusive: a 1–6 range behaves exactly like a die.

What if I ask for more unique numbers than the range contains?

The tool warns instead of looping forever — widen the range or allow duplicates.

Related tools