← All calculators / Math

Random number generator

Uses browser cryptographic random numbers.

01 / Your inputsBrowser-only calculation
Random number generator
—
How it works

The formula

Uniform integer selection with rejection sampling

Example inputs

Minimum: 1 · Maximum: 100 · Count: 1

Result: 43

What the Random number generator works out

The Random number generator turns the figures below into random number generator, using the formula Uniform integer selection with rejection sampling. Uses browser cryptographic random numbers.

What each field means

Minimum
A number; the example uses 1. Values must fall between -1000000000 and 1000000000.
Maximum
A number; the example uses 100. Values must fall between -1000000000 and 1000000000.
Count
A number; the example uses 1. Values must fall between 1 and 100.

A worked example

With the values this page opens on — Minimum 1, Maximum 100, Count 1 — the answer is 72. Reset restores exactly these numbers.

Reading the result

The headline number is random number generator. Change any field and the figure, along with the graph beside it, is recomputed from the values you typed — nothing is rounded before the arithmetic runs.

Assumptions and limits

Uses browser cryptographic random numbers. Both bounds are inclusive; duplicates are possible.

Your privacy

Nothing you type leaves your browser.

Related calculators

Number sequence ↗ · Big number arithmetic ↗ · Password generator ↗ · Slope ↗