Generate random numbers in a custom range.
Need a quick random number generator online? This free tool lets you generate one or thousands of random integers within any custom range — instantly, in your browser, with no sign-up required. Powered by the Web Crypto API for cryptographically unbiased results, it supports duplicate-free (unique) draws, making it perfect for lotteries, giveaways, statistical sampling, game design, and classroom exercises.
Yes. The tool uses `crypto.getRandomValues`, the browser's cryptographically secure random source (CSPRNG), and applies rejection sampling to eliminate modulo bias. The output is statistically uniform across your chosen range.
Check the 'Unique values' checkbox before clicking Generate. The tool will ensure every number in the result appears only once. If you request more unique numbers than the range contains (e.g., 15 unique values between 1 and 10), it will show a clear error instead of hanging.
You can generate up to 10,000 numbers in a single click. Results appear in a scrollable, copy-ready text field so you can paste them directly into a spreadsheet, script, or document.
Yes. Min and Max accept any integer, including negative values (e.g., Min = -500, Max = 500). Just ensure Min is less than or equal to Max. Very wide ranges (e.g., billions) work fine for non-unique draws; for unique draws the range must be at least as large as Count.