Random Number Generator
10
Integer Only
Allow Duplicates
Generated NumbersClick Generate
This random number generator produces one or more numbers drawn uniformly from a range you define. You control the lower and upper bounds, how many numbers to draw, whether they are whole integers or decimals, and whether repeats are allowed. It is handy for drawing lots, sampling, picking winners, or seeding simulations.
How it works
- Set the minimum and maximum of the range, the count of numbers you want, and toggle integer-only output and whether duplicates are allowed.
- Each draw is sampled uniformly from the range. Integer mode rounds the bounds inward and returns whole numbers; decimal mode returns values rounded to four decimal places. With duplicates disabled the generator keeps drawing until it has the requested count of distinct values.
Worked example
Draw 5 unique whole numbers between 1 and 50, for example for a raffle.
- Set minimum to 1, maximum to 50, and count to 5.
- Enable integer-only output and disable duplicates.
- Each result is an integer in the range 1 to 50, and no value repeats.
A list of five distinct integers somewhere between 1 and 50; the exact numbers differ on every run because they are random.
Frequently asked questions
- Are the numbers truly random?
- They are pseudo-random, generated by the browser built-in random function. That is statistically uniform and fine for games, raffles, and sampling, but it is not cryptographically secure and should not be used to generate secrets or keys.
- Can I prevent repeated numbers?
- Yes. Turn off "allow duplicates" and the generator returns only distinct values. Note that with integers the requested count cannot exceed the number of whole values in the range, or no result is produced.
- What is the difference between integer and decimal mode?
- Integer mode returns whole numbers within the range, rounding the bounds inward. Decimal mode returns continuous values rounded to four decimal places, which is useful when you need fractional samples.