toolgix

Random Number Generator

Fair random numbers in any range, with or without repeats.

Runs in your browserFree · no sign-up
01 Enter values
02 Your numbers

How to use Random Number Generator

  1. Set the lowest and highest number allowed (both can be drawn).
  2. Choose how many numbers you want and whether repeats are allowed.
  3. Select Generate for a new draw. Copy the result or download it as CSV.

How it works

Numbers come from your browser’s cryptographically secure random generator (crypto.getRandomValues), the same source used to create encryption keys, not from the predictable Math.random. Each draw takes a random 32-bit value and maps it to your range by rejection sampling: values that would make some numbers slightly more likely than others are thrown away and redrawn, so every number in the range is exactly equally likely.

With No repeats, numbers are drawn like tickets from a hat using a partial Fisher–Yates shuffle, so each can appear once. Both ends of the range are included: 1 to 6 can give 1 and 6.

Example

Minimum 1, maximum 6, one number: a fair die roll. Minimum 1, maximum 49, six numbers with no repeats, lowest first: a lottery-style pick.

Frequently asked questions

Are the numbers truly random?

They come from the operating system’s secure random source through your browser, which gathers unpredictable physical events. For practical purposes such as draws, games and sampling they are unpredictable and unbiased.

How do I pick a number between 1 and 10?

Set minimum 1 and maximum 10 and select Generate. Both 1 and 10 can come up.

How do I draw several numbers without repeats?

Enter how many you want and tick "No repeats". You cannot ask for more numbers than the range contains.

Can I use this for a giveaway or raffle?

Yes: number the entries, set the range to match and draw. For a public draw, record your screen so others can see the result was not redrawn.

Is anything sent to a server?

No. The numbers are created on your device and never leave it.

Limitations

  • Up to 10,000 numbers per draw.
  • Not for cryptographic keys or passwords: use the password generator for those.
  • The tool cannot prove to a third party that a draw was not repeated.

Last reviewed November 9, 2026. How we build and test tools.

Categories

Recent and favourites

Tools you open appear here, and tools you star with “Favourite” stay at the top. This list is kept only in this browser.

Browse all 145 tools

↑ ↓ to moveEnter to openEsc to close