GenerateRandomSearch

Random Decimal Range Generator

Generates a random decimal number to two decimal places from a minimum and maximum you set, starting from a default range of 0 to 100 — useful for placeholder measurements, spreadsheet test data, or a maths exercise needing a specific range.

What this generator does

Produces a decimal inside a range you set, always to two decimal places. Useful for sampling measurements and for filling numeric fields with realistic precision.

How to use this tool

  1. Set your minimum and maximum.
  2. Press generate for a random decimal.

Worked examples

Format
23.2, 37 and 5.88 — three draws from the default 0 to 100 range, shown as the page shows them

Common use cases

  • Placeholder decimal data
  • Maths practice with a specific range
  • Quick random measurements

How this generator works

Every value with two decimal places between your bounds is counted, and one of them is picked by a single unbiased draw from the browser's cryptographic source. Both bounds are included and every value, the minimum and maximum among them, is equally likely. Scaling a continuous draw and rounding it would leave each bound only half a rounding interval, so the ends would come up half as often; picking whole hundredths avoids that.

Limitations and good to know

  • A bound with more than two decimal places is pulled inward to the nearest hundredth inside the range, so 0.123 to 0.5 draws from 0.13 to 0.50. A range with no hundredth in it, such as 0.001 to 0.004, is refused with a message.
  • Always two decimal places, with no control for more or fewer. Trailing zeros are not shown, so 23.20 appears as 23.2 and a whole number appears with no decimals at all.
  • The minimum must not be above the maximum; an inverted range is refused with a message rather than quietly swapped.