Random Number Generator
Generate a set of random numbers within a range, with or without duplicates.
What "random" means here
This generates pseudo-random numbers using the browser's built-in random function — statistically fine for games, sampling, or picking a winner, but not cryptographically secure, so it shouldn't be used for anything security-sensitive like generating passwords or encryption keys.
Why repeated results can look "unrandom"
True randomness sometimes produces streaks or clusters, like the same number twice in a row, that feel wrong intuitively. Humans are generally poor at recognizing genuine randomness, which often looks more patterned than expected.
How to generate a number or draw a list
Set the inclusive minimum and maximum, choose how many integers to draw, and decide whether repeats are allowed. With duplicates disabled, each value can appear once; if the requested count is larger than the number of available integers, the result contains each available value at most once.
The output also shows the average and the smallest and largest values in that draw. These summaries describe only the generated results and do not imply that a future draw will have the same distribution.
Randomness and security limits
This page uses the browser’s Math.random() function for ordinary, non-security uses such as a casual game or a classroom activity. It is not a cryptographically secure generator and has no user-controlled seed. Do not use these results for passwords, tokens, encryption keys, lotteries that require audited fairness, or other security-sensitive purposes.
Frequently Asked Questions (FAQ)
Can I reproduce a draw by setting a seed?
No. This page does not provide a seed field or a way to replay a previous sequence. Each new draw generates a new result.
How does a generator prevent selection bias?
Human brains naturally favor specific number patterns or avoid edge values when asked to pick a random number. A digital generator uses balanced probability distributions, ensuring that every single number within your chosen minimum and maximum range carries an identical statistical probability of being selected.
Can a random number generator be used for secure passwords?
No. This page uses Math.random(), which is not intended for secrets. Use a trusted password manager or a cryptographically secure random-number source designed for security-sensitive values.
What is a uniform distribution in number generation?
A uniform distribution gives each allowed integer the same probability on each draw. In a long series, counts may approach equal proportions, but a small sample can contain clusters or repeats; this tool does not certify a physical die or a drawing as fair.
