Random Number Generator

Generate a random integer (or several) in any inclusive range.

Inputs

Result

Random number
42
Range: 1 to 100 (inclusive)

Formula

Each result = ⌊random() × (max − min + 1)⌋ + min, where random() is uniform on [0, 1).

Example

Range 1–6, count 1 → simulates a single die roll.

Frequently asked

Are these truly random?

They use the browser's pseudo-random generator — fine for everyday picks but not cryptographic use.

Are min and max included?

Yes — the range is fully inclusive on both ends.

Can I pick more than one?

Yes — set count up to 100. Numbers may repeat (independent draws).

Related calculators