Skip to content

Random Number Generator

Random whole numbers in any range, with or without repeats.

Range

Each number can be drawn only once, like names from a hat.

More options

Calculated on your device. Nothing you enter is sent anywhere.

Your numbers

98

A whole number from 1 to 100, each value equally likely.

Possible values
100
Chance of exactly this result
1 in 100

In short

The generator picks whole numbers between a minimum and a maximum, with every value equally likely. Choose how many numbers you want and whether repeats are allowed, which is how raffle and lottery draws work. Each press of the button draws again from a fresh random seed, and the page link keeps the seed, so anyone opening it sees the same numbers.

How it works

When you press the button, your browser’s cryptographic random source (the Web Cryptography API’s getRandomValues) produces a 128-bit seed. A fast, well-tested pseudo-random generator, xoshiro128**, turns the seed into a stream of 32-bit numbers. The implementation is checked against the authors’ published test values.

Uniform draw from N values

N = max − min + 1 keep raw values below ⌊2³² ÷ N⌋ × N, reject the rest result = min + (raw mod N)

Taking a raw number modulo N alone would make small values slightly more likely whenever 2³² is not a multiple of N. Rejecting the few raw values above the last full block removes that bias, so each value has probability exactly 1/N.

No repeats draws without replacement by shuffling the range, so every set of numbers is equally likely. The chance of one exact sorted set of k numbers from N is 1 in C(N, k).

Worked examples

Pick a number from 1 to 100

With one number from 1 to 100 there are 100 equally likely results, so any particular number comes up with a chance of 1 in 100. Press Generate again for an independent draw.

Open this example in the calculator

Six different numbers from 1 to 49

Turn on No repeats and Sort, and ask for 6 numbers from 1 to 49, the format of several national lotteries. The chance of any one exact set is 1 in 13,983,816, the number of ways to choose 6 from 49.

Open this example in the calculator

Ten coin tosses

Use 0 for tails and 1 for heads, and draw 10 numbers with repeats. Each toss has 2 outcomes, so any particular sequence of ten has a chance of 1 in 1,024.

Open this example in the calculator

Using this calculator well

  • Fine for games, classrooms and giveaways. Every value is equally likely and results can’t be predicted without the seed.
  • Not for passwords or keys. Use a password manager or your operating system’s key generator for security; this tool is designed to make draws shareable and repeatable.
  • Official draws have their own rules. Regulated lotteries and prize draws must use their approved process. Use this to practise or to settle informal choices.
  • Share a draw. The page address includes the seed, so sending the link lets others check exactly the numbers you got.

Frequently asked questions

Is this random number generator truly random?

The seed comes from your browser’s cryptographic random source, and the numbers come from a pseudo-random generator, which is deterministic once seeded. For everyday draws the result is unpredictable and every value is equally likely. For security uses such as passwords, use a dedicated cryptographic tool instead.

How do I pick random numbers without repeats?

Turn on No repeats. The generator then draws without replacement, like taking numbered balls out of a bag, so no number appears twice. You can draw at most as many numbers as there are values in the range.

What are the odds of a lottery like 6 from 49?

There are C(49, 6) = 13,983,816 different sets of six numbers, and each is equally likely, so one ticket has a 1 in 13,983,816 chance of matching all six. The calculator shows this figure whenever you choose numbers without repeats and sort them.

Why does the same link show the same numbers?

The random seed is stored in the page address. Opening the link recreates the same sequence, which lets you share a draw and lets others confirm it. Press Generate to draw new numbers with a new seed.

Sources and methodology

  1. Scrambled linear pseudorandom number generators (xoshiro128** 1.1), Blackman D, Vigna S, ACM Transactions on Mathematical Software 47(4), 2021, xoshiro128**; reference test vector from seed (1, 2, 3, 4): 11520, 0, 5927040, 70819200, 2031721883 … (accessed November 24, 2026)
  2. Web Cryptography API: Crypto.getRandomValues(), World Wide Web Consortium (W3C), §10.1.1 getRandomValues: cryptographically strong random values, used here for the seed (accessed November 24, 2026)

Rounding: Whole numbers only. Draws use the xoshiro128** generator seeded from your browser’s cryptographic random source.

Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.

Changelog
  • 1.0.0 · November 24, 2026: First published.

How we build and test calculators

Embed this calculator on your site

Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.

<iframe src="https://northcalculator.com/embed/en/random-number" title="Random Number Generator" width="100%" height="760" style="border:0" loading="lazy"></iframe>