Random Decimal Range Generator

 

Draws a decimal from 0 up to, but not including, 10.

Generated locally in your browser with the Web Crypto API.

Decimals in any range

Set a minimum and maximum to draw a uniformly random decimal in the half-open range, from the minimum up to but not including the maximum. The decimal places control pads trailing zeros so the copied value matches what you see.

Both bounds accept negative values and decimals, so you can sample a random price, a sensor reading, or a scaled probability without doing the arithmetic by hand.

Use cases

  • Generate a random price within a budget range
  • Mock sensor readings and measurement data
  • Sample a scaled probability or weighting factor
  • Create realistic decimal fixtures for tests