Generate one or many random numbers within any range, with an option to avoid duplicates.
Yes, enable "Unique values only" to generate a set of numbers with no repeats, useful for lottery-style draws or sampling.
You can use any minimum and maximum values, as long as the range is large enough to generate your requested quantity if uniqueness is enabled.
It uses JavaScript's built-in pseudorandom number generator, suitable for games, sampling, and general randomization needs, though not cryptographically secure.
This tool generates random numbers within any range you specify, supporting single numbers or large batches, with optional uniqueness (no duplicates) and automatic sorting.
By default, this tool can generate the same number more than once in a batch (like independent dice rolls). Enabling "unique values only" instead generates a set where no number repeats — similar to drawing lottery balls without replacement. If you request more unique numbers than fit in your specified range, the tool will let you know it isn't possible.
All number generation happens directly in your browser using JavaScript — nothing is sent to a server.