Random Number Generator

Generate a random whole number or decimal between any minimum and maximum.

⏱ Updated: 17 Sep 2026

Calculator

Free random number generator: generate a random whole number or decimal between any minimum and maximum.

Your Random Number

Set a minimum and maximum, then generate a random number in that range.

How to Use the Random Number Generator

The range only needs setting once — hit the button again as many times as needed for a fresh number without retyping the bounds each time.

This isn't true randomness, and no calculator like it is — it's pseudorandom, a deterministic formula that produces output statistically indistinguishable from randomness for anything short of cryptography. Fine for games, sampling, and settling an argument about who goes first; not fine for security keys.

integer result = floor(random() × (max − min + 1)) + min

The browser's random source hands back a decimal between 0 and 1, and this Random Number Generator scales that into whatever range you set, giving every whole number in it — including both endpoints — an equal shot. Uncheck "whole numbers only" for a decimal instead, rounded to three places.

Getting the same number twice in a row is entirely normal, especially in a small range — every click resamples fresh, with no memory of what came before.