Generate random numbers within range
Create random numbers for any purpose with our free random number generator. Set your minimum and maximum values, choose how many numbers to generate, and optionally ensure all numbers are unique. Perfect for drawings, games, statistics, and more.
Our generator uses JavaScript's cryptographically secure random number generation when available, ensuring truly unpredictable results. You specify a range (minimum and maximum values), and the tool generates numbers within that range.
Formula: Random Number = Math.floor(Math.random() × (max - min + 1)) + min
This ensures an even distribution across your specified range.
Select winners fairly from a pool of entries by assigning each entry a number.
Replace physical dice or create random game elements and outcomes.
Generate random samples for surveys, experiments, or data analysis.
Create random PIN codes or numeric portions of passwords.
Let randomness decide when you can't choose between options.
Generate numbers for math problems, quizzes, and teaching examples.
When you enable "Generate unique numbers," the tool ensures no duplicates in your results. This is useful for:
Note: You cannot generate more unique numbers than exist in your range (max - min + 1).
Set appropriate ranges: Make sure your minimum is less than your maximum.
Consider your needs: Use unique numbers for drawings, allow duplicates for dice rolls.
Large quantities: You can generate up to 100 numbers at once.
Negative numbers: The generator supports negative values for temperature, coordinates, etc.
Yes, we use cryptographically secure random number generation when available, making predictions virtually impossible.
This generator produces whole integers. For decimals, you can generate integers and divide by 10, 100, etc.
The range is limited by JavaScript's number precision, which handles values up to about 9 quadrillion safely.