What this tool does
Generate bounded random integers with optional uniqueness and sorting. The helper uses crypto.getRandomValues with rejection sampling to avoid modulo bias. Without duplicates it uses a partial virtual shuffle, so it does not allocate every number in a large range. Sum and average use integer arithmetic for accurate totals.
How to use Random Number Generator
- Prepare the input. Enter minimum, maximum and count.
- Run or configure the tool. Choose whether duplicates are allowed and whether to sort.
- Check and use the output. Select Generate and inspect the integer list and statistics.
How this tool works
The helper uses crypto.getRandomValues with rejection sampling to avoid modulo bias. Without duplicates it uses a partial virtual shuffle, so it does not allocate every number in a large range. Sum and average use integer arithmetic for accurate totals.
Worked example
Input: Minimum 7; maximum 9; count 3; duplicates off; sorting on
Output: 7, 8, 9
Limits, assumptions and interpretation
Bounds must be safe integers; the inclusive range can contain at most 4,294,967,296 values.
- Count must be a whole number from 1 to 1,000; unique count cannot exceed the range size.
- Random sequences are not reproducible with a seed in this interface and are not guaranteed to win a lottery or audit a gambling system.
- Browser cryptographic randomness must be available; unsupported environments report an error.
Supported inputs and limits
- Minimum 7; maximum 9; count 3; duplicates off; sorting on
- Bounds must be safe integers; the inclusive range can contain at most 4,294,967,296 values.
- Count must be a whole number from 1 to 1,000; unique count cannot exceed the range size.
- Random sequences are not reproducible with a seed in this interface and are not guaranteed to win a lottery or audit a gambling system.
- Browser cryptographic randomness must be available; unsupported environments report an error.
Sources and specifications
Frequently asked questions
What does this tool actually do?
The helper uses crypto.getRandomValues with rejection sampling to avoid modulo bias. Without duplicates it uses a partial virtual shuffle, so it does not allocate every number in a large range. Sum and average use integer arithmetic for accurate totals.
What should I check before using the result?
Bounds must be safe integers; the inclusive range can contain at most 4,294,967,296 values. Count must be a whole number from 1 to 1,000; unique count cannot exceed the range size. Random sequences are not reproducible with a seed in this interface and are not guaranteed to win a lottery or audit a gambling system. Browser cryptographic randomness must be available; unsupported environments report an error.
Is information sent to a server?
Tool inputs are processed in this browser. This product does not use analytics or send your input to an external API. Clicking an external website link still visits that website.