Random Number Generator

Your input stays in your browser and is never sent.

Generate random numbers in any range. Choose how many, whether to avoid duplicates, the number of decimal places and the sort order. Handy for raffles and drawing numbers.

  1. Enter
  2. See the result

Enter a range and press “Generate”.

What is the Random Number Generator?

The Random Number Generator picks numbers at random from a range you set. Use it for raffles, drawing numbers, preparing test data or number-guessing games.

With SOKUFU’s Random Number Generator you can set the minimum, maximum and count, and also choose to avoid repeats, the number of decimal places and the sort order.

No account or login. Free to use as often as you like.

How to use the Random Number Generator

  1. Enter the rangeEnter the minimum and maximum. Negative numbers and decimals are supported.
  2. Choose the optionsSet the count and the number of decimal places, then choose whether to avoid repeats and the sort order.
  3. GeneratePress “Generate” to see the result. You can copy it one per line or comma-separated.

Features of SOKUFU’s Random Number Generator

No repeated numbers
Like a raffle, each number can be drawn only once. If you ask for more numbers than fit in the range, the maximum available is shown.
Decimals too
Choose up to 6 decimal places.
Up to 1000 numbers
Generate up to 1000 numbers at once.
Sorting
Choose “As drawn”, “Smallest first” or “Largest first”.
Unbiased numbers
Numbers come from your browser’s cryptographic random numbers, so every number in the range is equally likely.
Runs in your browser
Nothing you do here is sent to a server.

How random numbers work

Computers produce random numbers in two main ways: pseudo-random numbers calculated from a fixed formula, and cryptographic random numbers built from hard-to-predict values the operating system collects. This tool uses your browser’s cryptographic random numbers (crypto.getRandomValues).

When the source values don’t divide evenly by the width of the range, simply taking the remainder makes smaller numbers more likely. To avoid that, the tool discards the leftover values at the end and draws again.

Related tools to use with the Random Number Generator

Random Number Generator FAQ

Can the minimum and maximum themselves come up?

Yes. Both the minimum and the maximum are part of the range. For 1 to 10, both 1 and 10 can appear.

Can I avoid repeated numbers, like in a raffle?

Yes. Tick “Don’t repeat a number”. You’ll get an error if the count is larger than the number of values in the range.

Does it support negative numbers and decimals?

Yes. The minimum and maximum can be negative. If you set decimal places, you get decimals up to that many places.

Can I use it for cryptography or security?

The numbers come from your browser’s cryptographic random source, but for important keys or passwords, use a dedicated tool or another trusted method.

Is anything I do sent to a server?

No. Numbers are generated entirely in your browser and nothing is sent outside.