Random Number Generator
Generate one or many random integers in a range, with optional no-repeat mode.
Generator settings
Result:
How uniqueness is enforced
In "unique values" mode, the generator builds a pool containing every integer in your range, then repeatedly picks a random index from the shrinking pool and removes it — guaranteeing no duplicates and an even chance for every remaining number. In "duplicates allowed" mode, each number is drawn independently, so the same value can appear more than once, just as if you rolled the same die multiple times.
Frequently asked questions
Why can't I get more unique numbers than my range allows? If your range only contains, say, 10 possible integers, you can't draw 15 unique values from it — the calculator automatically caps the count at the size of the range in unique mode.
Is this suitable for security-sensitive purposes (like generating passwords)? No — this uses JavaScript's standard Math.random(), which is fine for games, raffles, or picking a sample, but isn't cryptographically secure. Use the dedicated Password Generator for security-sensitive random values.
Does the order of numbers in the output mean anything? No — the numbers are listed in the order they were drawn, which is essentially arbitrary; there's no ranking or significance to the sequence shown.