UTILS.
Private by default
#

Random Number Generator

Generate random integers in a range, optionally unique, using secure randomness.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— output appears here —

About this tool

Generate random integers between a minimum and maximum entirely in your browser, using crypto.getRandomValues for unbiased, cryptographically strong results.

Minimum and maximum are read as whole numbers, so decimals are cut off, and if the minimum is larger the two are swapped. Negative limits work. The count accepts 1 to 10,000 and is clamped to that range. With unique on, the tool does a partial Fisher-Yates shuffle over the range and shows an error if you ask for more numbers than it holds.

Up to 20 numbers are printed on one line separated by commas; longer lists print one per line, in the order drawn, not sorted. A first result appears when the page loads.

Frequently asked questions

Are the numbers truly random?
They come from the browser's cryptographically secure generator with rejection sampling, so the values are unbiased across the chosen range.
What does the unique option do?
It draws distinct values with no repeats; if you ask for more numbers than the range can hold, it shows an error instead.
Can I use negative numbers or decimals?
Negative whole numbers work, for example -10 to 10. Decimal limits are truncated, and only integers are produced.
Are the results sorted?
No. They appear in the order they were drawn.

More tools