Random Number Generator
Set a range and quantity, then add prime, odd, even, multiple, exclusion, or sorting rules only when needed.
Number Generator Settings
Statistical Summary
Generator overview
Generate Random Numbers with the Rules You Need
This random number generator handles a basic one-to-one-hundred draw without making you configure a formula. When the task is more specific, open Advanced Rules to allow or reject numbers by uniqueness, parity, primality, divisibility, exclusions, and output order.
Enter minimum, maximum, and quantity, or use a preset for a die, d20, percentage range, or larger pool.
Build the valid pool first, then choose only from numbers that satisfy every active condition.
How to Generate Random Numbers
Begin with the inclusive range and amount. Add constraints after checking that enough numbers can satisfy them together.
- Set the range.Enter the smallest and largest values that may appear, including negative numbers when useful.
- Set the quantity.Generate one number for a simple draw or a larger set for sampling and exercises.
- Add optional rules.Require unique, odd, even, prime, or divisible values and exclude specific numbers.
- Generate and export.Review the values and summary, then copy CSV, copy one number per line, or roll again.
How Advanced Number Rules Combine
Every enabled filter applies to the same candidate pool. For example, Prime only plus Odd only excludes 2, while Prime only plus Multiple of 5 leaves only 5. If no values remain, broaden the range or remove a conflicting rule.
Choose without replacement for raffles, bingo-style draws, practice sets, and sampling.
Create focused classroom examples, worksheets, demonstrations, or test data.
Generate values on a step while skipping banned, used, reserved, or unwanted numbers.
Keep the draw order for randomness, or sort it for comparison and inspect the numerical summary.
Random Number Generator FAQ
Are the minimum and maximum values included?
Yes. The range is inclusive, so a generator from 1 to 100 can return both 1 and 100 when they satisfy the active rules.
Can I generate random numbers without repeats?
Yes. Unique numbers only is enabled by default. If the requested count is larger than the number of valid candidates, the tool returns all available matches rather than duplicating them.
Can I generate only odd, even, or prime numbers?
Yes. Open Advanced Rules and choose odd, even, or all numbers. Prime only can be combined with a range, uniqueness, exclusions, sorting, and a multiple rule when valid candidates exist.
How do multiples and exclusions work?
Enable Must be multiple of and enter the divisor to keep matching values. Add comma-separated exclusions when particular numbers must never appear in the result.
What statistics does the generator calculate?
The result panel shows the sum, mean, median, minimum and maximum, range span, and the count of even versus odd values for the current draw.
How are the random numbers selected?
The tool builds the valid candidate pool from your rules, shuffles it with unbiased rejection-sampled values from the browser Web Crypto API, and returns the requested count.