Random Number Generator

Random Number Generator

Pick a random number instantly — perfect for raffles, lottery, and dice rolls. Session history and entropy stats. Free, cryptographically secure, no sign-up.

Updated April 2026

CONFIGURATION
GENERATED OUTPUT
Click GENERATE to get started
ENTROPY: HIGH TYPE: INT32
Shift + Enter to Copy · Space Space to Generate
Uses cryptographically secure generation (Web Crypto API).

How to generate a random number

Set your range, pick a quantity, generate instantly

1. Set the range

Enter a minimum and maximum value — negative numbers work too.

2. Choose how many

Generate 1 to 1,000 numbers at once, with or without duplicates, sorted or shuffled.

3. Generate and copy

Press Space to reroll or Shift+Enter to copy the results instantly.

What this random number generator does

Built for one-off draws, with full transparency

Session history

Every draw is logged so you can review or audit past results.

Seed and latency stats

Shown after each generation so you can see exactly how the number was produced.

Rejection sampling

Removes the modulo bias that affects naive random number implementations.

Negative range support

Set any negative minimum — the full range of integers is supported.

Example configurations

Scenario
Setup
Number between 1 and 10
Min 1, Max 10, Quantity 1
Full lottery ticket (6-number draw)
Min 1, Max 49, Quantity 6, no duplicates
Replace a physical die
Min 1, Max 6, Quantity 1

When you'll reach for this tool

The most common scenarios among people who use it

Giveaways and raffles

Assign each entrant a number and pick a statistically fair winner.

Lottery numbers

Set the range to match the game's rules and generate a full ticket in one click.

Games and tie-breakers

Stand in for a physical die or settle a tie in a board game.

Development and testing

Generate test IDs or seed database fixtures with varied values.

Common mistake? Start here

Asking for more unique numbers than the range allows

With duplicates turned off, quantity can't exceed (Max − Min + 1) — the generator will reject the request.

Mistaking pseudorandom for unreliable

For everyday use, the practical difference between quality pseudorandomness and true randomness is zero.

Generating more than 1,000 numbers in one call

That's the per-generation cap — for larger batches, use the Random List Generator instead.

Why use this random number generator

Session history plus seed and latency stats after every generation give you full transparency into the process — something most simple generators never show you.

It uses rejection sampling to remove the modulo bias that many online generators ignore, so every number in your range has exactly the same probability of appearing.

Math.random() vs. crypto.getRandomValues()

Why the source of randomness matters

Math.random()
crypto.getRandomValues()
Cryptographically secure
no
yes
Bias in large samples
possible
eliminated with rejection sampling
Used by
most simple generators
this tool

Frequently asked questions

Set Min to 1, Max to 10, Quantity to 1, and click Generate. Each of the ten numbers has exactly a 10% chance of coming up.

References

Related Tools