Random Number Generator
Free random number generator: integers or decimals in any range, unique-only draws, sorting and custom separators, plus dice rolls and coin flips.
How to use Random Numbers
- 1Choose Numbers, Dice or Coin.
- 2Set the range, count and options, for example unique only or three decimal places.
- 3Copy or download the result, or press Regenerate to draw again.
What makes it better
- Integers or decimals with 0 to 10 decimal places
- Unique-only draws with a clear error when the range runs out
- Ranges up to plus or minus 2^53, with no modulo bias
- Sort ascending or descending, and newline, comma, space or custom separators
- Dice (d4 to d100) with a total, and coin flips with heads and tails counts
About Random Numbers
Random Number Generator draws integers or decimals between a minimum and maximum you choose, up to 10,000 at a time, with optional unique-only draws, sorting and a separator of your choice. Switch to Dice for d4 to d100 rolls with a total, or Coin to flip up to 10,000 coins and count heads and tails.
Common uses
- Draw raffle or lottery style numbers without repeats.
- Roll dice for a tabletop game when you do not have any.
- Create sample data such as prices or measurements for a spreadsheet.
- Settle a decision with a coin flip, or pick a random item number from a list.
Example
Input
Numbers: minimum 1, maximum 100, 5 integers, one per line (sample only: every draw is new)
Result
47 3 91 58 12
Good to know
- Numbers come from the browser's cryptographic generator with rejection sampling, so every value in the range is equally likely. This suits games and sampling, but it is not a certified draw for regulated lotteries.
- Decimals are produced by picking a whole number and scaling it, so each value has exactly the precision you set, and the minimum and maximum are both possible.
- Unique-only needs a range at least as large as the count. Asking for 20 unique numbers between 1 and 10 shows an error instead of repeating values.
Random Numbers FAQ
How do I generate random numbers without repeats?
Turn on Unique only. Each number can then appear once, so asking for 6 numbers from 1 to 49 gives six different values like a lottery draw.
Are the minimum and maximum included?
Yes, both ends are possible results. A range of 1 to 6 can produce 1, 2, 3, 4, 5 or 6 with equal probability.
Is this a true random number generator?
It is a cryptographically secure pseudo-random generator seeded by your operating system, which is what browsers offer. It is unpredictable for any practical purpose, though it is not a hardware random source.
How does the dice roller work?
Pick a die from d4 to d100 and how many to roll. Each die is drawn independently, and the page lists every roll and the total.
Why does a flip of 1,000 coins not give exactly 500 heads?
Each flip is independent, so the count of heads varies around the middle. About two thirds of 1,000-coin runs land within roughly 16 of 500, and an exact 50/50 split is the exception.