Generating a random number within a range means you pick a minimum, a maximum, and a rule for whole numbers or decimals — then sample so every value in that range has a fair chance. You use this for classroom demos, raffles, load-test data, A/B assignment practice, and any time “pick something between X and Y” should not favor your favorite digits.
This guide walks through min/max setup, integers versus decimals, bulk generation, fairness, and common pitfalls. Create values instantly with the free random number generator — set range, type, precision, and count in the browser.
You will also see when a simple RNG is enough and when you need dice, passwords, or unique IDs instead.