Skip to content

Random Number Generator

Generate truly random numbers in any range — one or many, whole or decimal, with or without repeats.

Up to 10,000.

Turn off to draw each number at most once, like a raffle.

Preparing calculator controls…

Result

Set a range and select Generate.

Runs in your browser — nothing you enter is sent to a server.

How the Random Number Generator works

Set a minimum and maximum (both included), how many numbers you need and how many decimal places, then select Generate. Turn off Allow repeats to draw each number at most once — like pulling tickets from a hat.

Numbers come from your browser's cryptographically secure generator (crypto.getRandomValues), not the predictable Math.random(), and every number in the range is exactly equally likely.

Formula

P = 1 ÷ (max − min + 1)

For whole numbers from 1 to 6 each result has a 1 in 6 chance. Values that would favour some numbers (“modulo bias”) are discarded and redrawn.

Examples

Roll a die

Minimum 1, maximum 6, how many 1.

Draw 5 raffle winners from 200 tickets

Minimum 1, maximum 200, how many 5, Allow repeats off.

Random price between 10 and 20

Minimum 10, maximum 20, 2 decimal places.

Frequently asked questions

Are the numbers truly random?

They come from your operating system's secure random source via the browser — the same kind used for encryption keys. They can't be predicted from earlier results.

Can I use this for official lotteries or legal draws?

The numbers are fair, but official draws usually need an audited process and a witness. Use this for everyday picks, games, classrooms and informal giveaways.

Why can't I get 10 unique numbers between 1 and 5?

Only 5 different whole numbers exist in that range. Allow repeats, widen the range or ask for fewer.

Password Generator

Create strong random passwords with the length and characters you choose, generated privately in your browser.

Security Tools

Random String Generator

Generate random strings from letters, digits, hex, URL-safe characters or your own set, in bulk.

Generators

QR Code Generator

Turn a link or text into a QR code and download it as SVG or PNG, with custom colors.

Generators

List Randomizer

Pick random winners from a list, shuffle it, or split it into random groups.

Generators