Random Number Generator
Generate one or more random numbers within your specified range.
Generate one or more random numbers within your specified range.
Set your minimum and maximum values, choose how many numbers to generate (up to 100), and click "Generate." You can optionally disable duplicates to ensure every number in the result is unique, or enable sorting to arrange results in ascending order. The generated numbers are displayed immediately and can be copied to your clipboard with one click.
This tool uses the Web Crypto API's cryptographically secure random number generator built into your browser. Unlike simple Math.random() implementations, crypto-grade randomness is suitable for applications where unpredictability matters, such as drawings, contests, and statistical sampling.
Random numbers are used in raffles, lottery simulations, statistical sampling, game design, educational exercises, and decision-making. Teachers use random number generators to call on students fairly. Researchers use them to select random samples from populations. Game developers use them for dice rolls, card shuffling, and procedural generation.
When you uncheck "Allow duplicates," the generator ensures every number in the output is different. This is useful for picking lottery numbers, assigning unique IDs, or selecting random items from a numbered list. Note that the count cannot exceed the range when duplicates are disabled, as there would not be enough unique values to choose from.