Home › Blog › How to generate random numbers
Security and Password Tools guide

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

  1. Set the range. Enter a minimum and a maximum.
  2. Choose options. How many, unique or not, decimals and order.
  3. 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

ToolRandom Number Generator
CategorySecurity and Password Tools
Works withNumbers
Size limitLimited by browser memory
Where it runsIn your browser tab; your input is not uploaded
CostFree, 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

More tools like this are in Security and Password Tools, or browse all tools.