Generate a list of random integers, optionally unique and sorted.
Random Number Generator
Generate a random whole number within a range you set.
- Free
- No sign-up
- Runs in your browser
Input
A number.
A number.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Set the minimum and maximum.
- 2
The result is a uniform random integer, both ends included.
Questions about Random Number Generator
Are both ends included?
Yes, the range is inclusive, and every value in it is equally likely.
Is the randomness secure?
Yes. It uses the browser’s cryptographically secure generator (crypto.getRandomValues) with the modulo bias removed — never Math.random.
Does anything leave my device?
No. Everything is generated locally in your browser; nothing is sent or logged.
Does the Random Number Generator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Random Number Generator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Random Number Generator uploaded or stored?
No. The Random Number Generator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Generate a random decimal within a range, to the precision you choose.
Roll a single die with any number of sides.
Generate a strong random password with the character types you choose.
Generate a memorable passphrase from random words.
Generate a random numeric PIN of the length you choose.
Generate a random string from a chosen character set.
Generate a random colour as a hex code with its RGB channels.