Random Number Generator
Set a range and a count and get unbiased random numbers.
OUTPUT
CHARS: 0WORDS: 0LINES: 0
How the Random Number Generator works
Whole numbers are drawn uniformly from the range, inclusive of both ends, using the browser's cryptographic generator and a rejection method that avoids the slight bias of a simple modulo. Decimal mode returns values with the number of places you choose.
No repeats gives unique whole numbers, like drawing tickets from a hat, and the tool will tell you if the range is too small. Results can be sorted and separated by new lines, commas or spaces.
Random Number Generator examples
Generate 5 random integers between 1 and 100
Input
[Min: 1, Max: 100, Count: 5, Unique: true]
Result
14, 42, 67, 83, 91
When it is useful
- •Drawing raffle numbers or lottery style picks.
- •Picking a random sample of row numbers from a dataset.
- •Rolling large dice and creating test values.
- •Choosing a number for games and classroom exercises.
Frequently Asked Questions
Is it suitable for security or lotteries?
It uses a secure source, which is good for fair draws. For regulated lotteries, follow the rules of the organizing authority.
Why do I get an error with no repeats?
You asked for more unique numbers than the range holds. Widen the range or lower the count.
Can the range include negative numbers?
Yes. Both the minimum and the maximum can be negative.
Related tools
- Number SorterPaste numbers in any common format and get a clean sorted list.
- Random Choice GeneratorList your options, press Pick and let chance decide.
- Random Date GeneratorSet a start and an end date and get as many random dates as you need.
- UUID GeneratorCreate unique identifiers for databases, tests and APIs.