Random Number Generator
Free random number generator. Pick one or many random numbers within any range, as integers or decimals, with or without duplicates — perfect for draws and games.
Settings
0 Random Numbers
—
How It Works
Set your range
Enter the minimum and maximum values the random numbers should fall between.
Choose how many and what type
Pick how many numbers to generate, whether they should be integers or decimals, and whether duplicates are allowed.
Generate
Press Generate to draw a fresh set of random numbers. Press it again any time for a new draw.
A random number generator produces values with no predictable pattern, which makes it useful for raffles, games, sampling, assigning tasks, picking winners and breaking ties fairly. This tool lets you control the range, how many numbers you want, whether they are whole numbers or decimals, and whether the same value can come up twice.
Generation happens entirely in your browser using the standard Math.random() function, so results appear instantly and nothing leaves your device. When duplicates are turned off, the generator samples without replacement, guaranteeing every number in the draw is unique as long as your range is large enough to supply them.
Frequently Asked Questions
How does the random number generator work?
It uses your browser’s built-in Math.random() to produce uniformly distributed values, which are then scaled to your chosen range. Everything happens locally in your browser, so your numbers are never sent anywhere.
What is the difference between integer and decimal mode?
Integer mode returns whole numbers within your range, each value equally likely. Decimal mode returns fractional numbers with several decimal places, useful when you need finer-grained random values.
What does "allow duplicates" mean?
With duplicates allowed, the same number can appear more than once, like rolling a die repeatedly. With duplicates disabled, each number is drawn at most once (sampling without replacement) — so the count cannot exceed how many distinct integers fit in your range.
Is this suitable for security or cryptography?
No. Math.random() is fine for games, draws, picking winners and everyday randomness, but it is not cryptographically secure and should not be used to generate passwords, tokens or keys.
Related Calculators
Build with our Random Number Generator API
Integrate our high-speed conversion engine directly into your own applications. Get free api keys for random number api and more.