Random Number Generator
Generate random numbers within a range, with optional uniqueness.
Last updated August 26, 2026
About this tool
This tool generates one or more random integers within a range you set, with an option to disallow duplicates — useful for raffles, sampling, games, or picking a random test case. Without the “no duplicates” option, each number is drawn independently, so repeats are possible just as with real dice or a lottery machine.
Frequently asked questions
Is this suitable for cryptographic or security purposes?
No — it uses standard JavaScript `Math.random()`, which is fast and fine for games, raffles, or sampling, but not suitable for generating secrets like passwords or encryption keys. Use the Password Generator for that instead.
What happens if I ask for more unique numbers than exist in the range?
The tool disables generation and shows a warning, since there aren't enough distinct numbers in the range to satisfy the request without duplicates.
More in Generators
Generate strong random passwords with custom length and character sets.
Create a free QR code for a URL, text, Wi-Fi network, email, phone number, SMS, or contact card. Customize colors, add a logo, and download as PNG or SVG.
Roll one or more dice with any number of sides.