Random Number Generator
Set a range and a count, then select Generate.
Generate random whole numbers between a minimum and a maximum that you choose. Set how many numbers you want and turn on unique values when you need each one to be different (handy for raffles, picking winners, or sampling without repeats). Everything runs in your browser using your device's secure randomness, so nothing is sent to a server.
How to use
- Enter the minimum and maximum values for your range.
- Set how many numbers you want under How many.
- Turn on Unique values only if you need every number to be different.
- Select Generate to produce your numbers.
- Use Copy to copy the results, or Reset to start over.
Examples
- A single dice roll: min 1, max 6, count 1 returns a value like 4.
- Six lottery numbers: min 1, max 49, count 6 with unique values on returns six distinct numbers like 3, 17, 22, 31, 40, 45.
- Ten coin flips: min 0, max 1, count 10 returns a string of zeros and ones like 1, 0, 0, 1, 1, 0, 1, 0, 0, 1.
FAQs
- Are the numbers truly random?
- They use crypto.getRandomValues, the browser's cryptographically secure random source. That is far stronger than Math.random and is suitable for raffles, sampling, and picking winners.
- What does unique values do?
- With unique on, every number in the result is different. The tool checks that enough distinct values fit your range first. For example you cannot ask for 5 unique numbers between 1 and 3, since only 3 exist.
- Are min and max included in the range?
- Yes. Both ends are inclusive. A range of 1 to 6 can return 1, 6, or anything in between.
- Can I use negative numbers?
- Yes. You can set the minimum below zero, for example min of -10 and max of 10. The minimum just has to be less than or equal to the maximum.
- Is anything sent to a server?
- No. All generation happens locally in your browser. Your range and results never leave your device.
- How many numbers can I generate at once?
- Up to 100,000 in a single request. If you need a unique set, the count also has to fit within the size of your range.
Related tools
- Standard Deviation CalculatorCalculate mean, variance, and standard deviation for a data set. Get both population and sample results from comma, space, or newline separated numbers.
- Percentage Change CalculatorFind the percentage change between two numbers. See the increase or decrease and the exact difference instantly, with a guard for an old value of zero.
- Ratio CalculatorSimplify a ratio to its lowest terms with the GCD, or solve a proportion a:b = c:x for the missing value. Free and instant.
- Fraction CalculatorAdd, subtract, multiply, or divide two fractions. Get a simplified fraction reduced by GCD plus the decimal value, with division by zero guarded.
- Age CalculatorCalculate exact age in years, months, and days between a birth date and any reference date. Handles leap years correctly. Free and private.
- Average CalculatorCalculate mean, median, mode, min, max, range, and sum for a list of numbers. Paste values and get instant stats. Free and private in your browser.