Random Number Generator
Generate random integers within a range, with optional unique results.
How to use Random Number Generator
Choose inclusive minimum and maximum bounds and generate up to 1,000 integers. Negative bounds are supported, and duplicates can be disabled.
Details and limits
Integer sampling uses crypto.getRandomValues with rejection sampling to avoid modulo bias. Unique sampling remains bounded even when selecting an entire range. Bounds must be safe JavaScript integers; decimal random numbers are not included.