How to generate random numbers
For draws, games and sampling you need fair random numbers. This tool uses your browser’s secure random source and avoids modulo bias.
Open the Random Number Generator tool
Step by step
- Set the range. Enter a minimum and a maximum.
- Choose options. How many, unique or not, decimals and order.
- Copy the list. Copy or download the numbers.
Tips for better results
- Turn on Unique numbers for a lottery-style draw without repeats.
- Decimals are rounded to the places you choose.
- The range can be negative.
Limits to know
- Formats: Numbers
- Size: Limited by browser memory
- Notes: Whole-number ranges up to about 4.29 billion values. Not a replacement for certified lottery equipment.
At a glance
| Tool | Random Number Generator |
|---|---|
| Category | Security and Password Tools |
| Works with | Numbers |
| Size limit | Limited by browser memory |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, no sign-up |
Frequently asked questions
Is it fair?
Yes. Numbers come from crypto.getRandomValues and are chosen without modulo bias.
Why can I not get more unique numbers than the range?
There are only so many different values between your minimum and maximum.
If something does not work
- The result says a value is invalid. Check that every field has a number in the allowed range; the message names the field.
- The numbers look different from another calculator. Rounding, rate and date conventions differ between calculators. Compare the assumptions shown with the result.
- The page does not update. Reload it and try again; if it still fails, report it.
- Is the answer advice? No. Results are estimates for general information.
Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.
Related tools and guides
- UUID Generator: Generate random version 4 UUIDs or time-ordered version 7 UUIDs. Create up to 1,000 at once and copy or download them. Read the guide
- Hash Generator: Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files, with optional HMAC and a compare box. Read the guide
- MD5 Generator: Generate the MD5 hash of any text or file, with optional HMAC-MD5 and a compare box. Read the guide
More tools like this are in Security and Password Tools, or browse all tools.