Random Decimal
Set the range and how many fraction digits to show.
About this tool
The value is rounded to the places you choose for display.
The maximum must be at least the minimum.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Pick a number.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- The maximum must be at least the minimum.
A million steps, then a fixed display
The formula
Places are clamped from 0 through 12 and default to 2. Minimum and maximum come from the number fields. If the maximum is less than the minimum, the page throws. Otherwise it draws randomInt(1000000), divides by 1000000, and scales that unit interval across the gap: minimum plus the fraction times (maximum minus minimum). The numerator comes from crypto.getRandomValues as one 32-bit cell, then modulo one million. The result is then toFixed at the chosen places, so you see a rounded decimal string, not the full fraction.
There are one million buckets before rounding. A wide range does not gain extra precision. A narrow range can collapse several buckets onto the same printed number once toFixed runs. Places do not change the draw. They change the spelling. Asking for 0 places yields an integer string that may be the same for many different buckets. Asking for 12 places still started from a millionth of the gap, so the extra digits are not new entropy. They are zeros or rounding residue of that coarse fraction.
What the number is for
Use it for sample prices, sample measurements, and form fixtures where a decimal appearance matters and statistical purity does not. It is not a normal distribution, not a triangular distribution, and not an unbiased float from a 53-bit mantissa. The integer generator is the one that stays on whole numbers and can refuse a unique count larger than the span. This page always returns one number. It has no count control and no unique switch.
Display values, not a paper sample
A cryptographic key, a nonce, or a modular residue should come from somewhere else. You get a short decimal from bounds you set, displayed so a form can be filled by hand. A Monte Carlo result you will publish needs a better generator. The million-step grid and the modulo bias are the wrong tools for that paper. Do not expect the endpoint maximum to appear as a clean value. The fraction is strictly less than 1 because randomInt(1000000) is at most 999999, so the open end of the range is only approached, and toFixed may still round the last step up onto the maximum’s printed form. Read the string as a display value. If you needed the raw bucket index, this page does not show it.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

