Generates one or more random numbers within a specified range.
The random number generator produces one or more random integers (or decimals) within a specified range, with options for unique values and sorted output.
Random integer in [min, max] = floor(Math.random() × (max − min + 1)) + min Unique draws: equivalent to drawing without replacement from the range Entropy per draw = log2(range size) bits
Generate 5 unique numbers between 1 and 49 (lottery-style). Each draw is equally likely; the probability of any specific set = 1 / C(49,5) ≈ 1 in 1.9 million.
Loading calculator…