Overview

This generates random decimal numbers between a minimum and a maximum. Use it for quick sampling, games, test data or picking values for practice problems.

Enter the range, how many numbers you want (up to 20) and how many decimal places (up to 6). Press Calculate again for a new set.

How it works

Each number is drawn uniformly, so every value in the range is equally likely, then rounded to your chosen decimals. With 0 decimals, it gives whole numbers from the minimum up to just below the maximum. Numbers can repeat. It uses the browser's standard random function, which is fine for everyday use but not for security or lotteries.

The formula

x = min + (max − min) × random()
random()A uniform number from 0 up to 1

Practical tips

  • Set 0 to 1 with 3 decimals for probabilities such as 0.634.
  • To simulate a percentage, use 0 to 100 with 1 decimal.
  • Don't use it to create passwords or keys. Use a password manager instead.

Frequently asked questions

Are the numbers truly random?

They're pseudo-random, generated by an algorithm. That's random enough for games and sampling, but not for cryptography.

Can it avoid duplicates?

No. Each number is drawn independently, so repeats are possible, especially with few decimals.

Why can't I get exactly the maximum?

Values are drawn from just below it, which barely matters with decimals.