Random Number Generator
Generate random integers within a custom range. Set min, max, and count to generate multiple random numbers at once.
What is a Random Number Generator?
This tool generates truly random integers within a range you specify. You can generate a single number or a batch of up to 1,000 numbers at once. Each click of Generate produces a fresh set.
How to use this tool
- Set the Min value (default: 1)
- Set the Max value (default: 100)
- Set the Count — how many numbers to generate (1–1000)
- Click Generate
- Click Generate again to get a new random set
How it works
Uses the browser’s built-in Math.random() function, which generates a uniform pseudo-random float. The result is scaled and floored to produce integers in the specified range.
Formula: Math.floor(Math.random() * (max - min + 1)) + min
Example use cases
- Games: Roll a virtual die (min: 1, max: 6) or simulate a coin flip (min: 0, max: 1)
- Lottery: Pick 6 random numbers between 1 and 49
- Sampling: Generate random IDs for a subset of survey respondents