Random Number Generator

Generate random numbers in any range with crypto.getRandomValues and unbiased sa...

SecureFastFree

Updated

Generated in your browser with crypto.getRandomValues and an unbiased range map. Nothing is sent anywhere. Works offline.
0 numbers

Set your options and press Generate.

Quick answer

To generate a random number, set a minimum and maximum, choose how many you want, and press Generate. This tool builds each number in your browser with crypto.getRandomValues, the cryptographically secure random source, and maps it into your range with rejection sampling so every value is equally likely, with no modulo bias. It can also draw unique lottery numbers, decimals, dice rolls, and coin flips, and nothing is ever sent to a server.

SSL Secured
256-bit Encryption
Cloud Processing
Mobile Friendly

Why It's Better

Crypto RNG - getRandomValues
No Modulo Bias - Rejection sampling
Unique Draws - True permutation
Decimals - Up to 4 places
Dice & Coins - NdM and flips
Offline - 100% in-browser

Why Use Random Number Generator?

Truly Fair, Unbiased Randomness

Every number comes from crypto.getRandomValues, the browser's cryptographically secure random source, mapped into your range with rejection sampling. That means no modulo bias, so a 1 is exactly as likely as a 7. Most simple generators use Math.random plus a modulo, which quietly favors the low end of a range.

Unique Draws for Lotteries and Raffles

Turn on 'no duplicates' and the tool draws a genuine permutation, so a set of lottery or raffle numbers never repeats. It uses a shuffle rather than retrying, so it stays instant even when you want the whole range drawn once.

Integers, Decimals, and Any Range

Set any minimum and maximum, pick how many numbers you want, and choose integers or up to four decimal places. Sort the results low to high, high to low, or leave them in draw order.

100% in Your Browser

There is no server to send anything to. Every roll, flip, and draw happens on your device, so it is private and keeps working with your wifi off. Open the Network tab and you will see zero requests.

Common Uses for Random Numbers

Games & Tabletop

Roll dice, flip coins, or pick a random value on the fly.

Lottery & Raffles

Draw unique, sorted numbers for a fair pick.

Testing & Sampling

Random seeds, test data, and statistical samples.

Giveaways & Picks

Pick a random winner or assign a random order.

How It Works

1

Set Your Range and Count

Enter the minimum and maximum, and how many numbers you want. Or tap a preset like 1 to 100, a lottery draw, or a 4-digit PIN.

2

Choose Your Options

Pick integers or decimals, turn on 'no duplicates' for a unique draw, and set a sort order. Switch to the Dice or Coin tab for NdM rolls and coin flips.

3

Generate and Copy

Press Generate to get your numbers with live min, max, sum, and average. Copy them with one click, or press again for a fresh set.

Tips & Information

Use a Preset to Start

The presets fill the range, count, and options for common jobs like a 1 to 100 pick, a lottery draw, or a 4-digit PIN.

Unique Means Fair Draws

For any draw where a value should not repeat, such as a raffle or shuffled order, turn on 'no duplicates' to get a true permutation.

Unique Needs Enough Room

A unique draw needs at least as many possible values as numbers requested. You cannot draw 20 unique whole numbers from 1 to 10.

Frequently Asked Questions

Set a minimum and maximum, choose how many numbers you want, and press Generate. This tool creates each number in your browser with crypto.getRandomValues and maps it into your range with rejection sampling, so every value in the range is equally likely.
They are as fair as a browser can make them. The numbers come from crypto.getRandomValues, the cryptographically secure random source, not Math.random. The range mapping uses rejection sampling instead of a plain modulo, which removes the bias that would otherwise make lower numbers slightly more common.
Yes. Turn on 'no duplicates (unique draw)' and every number in the result is distinct, which is what you want for a lottery, raffle, or random ordering. The set is drawn as a true permutation, so you can even draw an entire range once with no repeats.
The tool shows a clear message instead of freezing. For example, there are only 6 whole numbers between 1 and 6, so a unique draw of 7 is impossible. It tells you how many values are actually available so you can lower the count or widen the range.
Use the 'Lottery 1 to 49' preset, or set your own range, put the count to how many balls are drawn (often 5 or 6), turn on 'no duplicates', and sort low to high. Remember this only helps you pick numbers, it does not change your odds of winning.
Yes. The Dice tab rolls any number of dice with d4, d6, d8, d10, d12, or d20 sides and shows the total. The Coin tab flips one or many coins and tallies heads versus tails. Both use the same secure, unbiased randomness as the number generator.
No. The entire tool runs as client-side JavaScript, so nothing you generate is uploaded, stored, or logged. It also works offline once the page has loaded.
Yes. Set the decimals option to 1, 2, 3, or 4 places and the tool generates uniform random decimal values across your range, rounded to that precision. Leave it on Integers for whole numbers.

Related Tools