Toolerax logoToolerax

Random Number Generator

Generate random numbers in any range.

100% private — runs in your browser, nothing is uploaded.

How to use the Random Number Generator

  1. 1
    Set the range

    Enter the minimum and maximum values you want to draw from.

  2. 2
    Choose how many

    Pick how many numbers to generate (1 to 10,000).

  3. 3
    Toggle duplicates

    Turn on 'No duplicates' if every number must be unique.

  4. 4
    Generate

    Press Generate and copy the result.

Examples

InputOutput
1–100, one numbere.g. 42
1–49, six unique numberse.g. 3, 11, 18, 27, 34, 45

Free online random number generator

This random number generator picks fair, unpredictable numbers from any range you choose. Use it to draw raffle winners, roll custom dice, assign teams, pick lottery numbers or seed a decision — one number or thousands at a time.

Truly random, not just “random enough”

Instead of the basic Math.random(), this tool uses your browser's Web Crypto API with rejection sampling, which removes the subtle bias that simple methods introduce. The result is that every number in your range is equally likely — important for anything that needs to be genuinely fair.

Unique or repeating

  • With duplicates — like rolling a die many times; the same value can come up again.
  • Without duplicates — like drawing names from a hat; each number appears once.

Everything runs in your browser, so it is instant, private and works offline.

Frequently Asked Questions

How does the random number generator work?

Enter a minimum and maximum, choose how many numbers you want, then press Generate. Each number is picked from your range using your browser's cryptographically secure random source.

Can I generate numbers without duplicates?

Yes. Tick the 'No duplicates' option and every number in the result will be unique — useful for raffles, drawing names or picking lottery-style numbers.

Is the randomness truly fair?

The tool uses the Web Crypto API and rejection sampling to avoid modulo bias, so every value in your range has an equal chance. That is far fairer than a naive Math.random approach.

What range of numbers is supported?

You can use any whole-number range, including negatives, as long as max is greater than or equal to min. You can generate up to 10,000 numbers at once.

Can I use it to pick a lottery or raffle winner?

Yes. Set the range to your ticket numbers and generate one unique number, or several if there are multiple winners. It is quick, fair and needs no sign-up.

Is it private?

Yes. Numbers are generated entirely in your browser. Nothing is sent to a server, and the tool works offline.

From the blogHow Random Number Generators WorkPseudo-random vs cryptographic randomness, why Math.random is predictable, what modulo bias is, drawing without duplicates, and how RNG bugs cost real money.Read the full guide

Related tools