Random Number Generator
Generate custom sets of random integers or decimals within a chosen range, with optional duplicate prevention.
About random number generation
Random number generator examples
| Settings | Example output | Use case |
|---|---|---|
| 1 to 6, 5 whole numbers, duplicates allowed | 4, 1, 4, 6, 2 | Simulates five independent rolls of a six-sided die. |
| 1 to 20, 3 whole numbers, duplicates disallowed | 17, 4, 11 | Selects three distinct numbered participants. |
| 0 to 1, 4 decimal numbers, duplicates allowed | 0.18, 0.72, 0.05, 0.91 | Creates sample probabilities for a demonstration. |
How to generate random numbers
- Enter the minimum and maximum values that define the allowed range.
- Set how many results to generate, from one through one thousand.
- Choose whole numbers or decimals and decide whether duplicates are allowed.
- Select Generate Numbers and copy the resulting sequence before generating again.
Random number generator FAQ
Are the minimum and maximum included?
Whole-number generation includes both integer endpoints when they are valid. Decimal generation samples throughout the interval and can display a rounded endpoint.
Can the same number appear twice?
Yes when duplicates are allowed, because each selection is independent. Switch to the disallowed setting when every displayed value must be unique.
Why can a unique request fail?
A finite integer range contains only a limited number of distinct values. The requested quantity cannot exceed that capacity when duplicates are disallowed.
Is this generator suitable for passwords or lotteries?
No, it is intended for ordinary simulations, games, and informal selection. Security-sensitive or regulated uses need a cryptographically secure and auditable random process.
How many numbers can I generate?
A single request can generate up to 1,000 values. This limit keeps rendering fast and the displayed sequence manageable.