Math
Random Number Generator
Set a range and how many numbers you need, then press Generate.
The formula
Each number is drawn uniformly at random from [min, max].
Uses crypto.getRandomValues when available.
Worked example
Three random integers from 1 to 100
- min = 1, max = 100, count = 3
- result: 42, 7, 85 (yours will differ)
Where this goes wrong
Confusing random with unique
Random numbers can repeat. If you roll a six-sided die twice, getting 4 both times is just as random as getting 4 then 2. If you need unique numbers — lottery picks, seat assignments — you need a shuffle, not independent draws. This generator draws independently: duplicates are possible when the range is small relative to the count.
Questions
- Is this truly random?
- It uses the browser's cryptographic random number generator (crypto.getRandomValues), which draws from the operating system's entropy pool. That is as random as software can be without specialized hardware. It is suitable for games, simulations and drawings, but not for cryptographic key generation.
- Can I generate decimals?
- This generator produces integers only. For a decimal between 0 and 1, any programming language's built-in random function will do — Math.random() in JavaScript, random.random() in Python.
- How many can I generate at once?
- Up to 1,000. Beyond that the page would become hard to read, and if you need millions of random numbers you need a script, not a web page.