Generators

Random Decimal Generator

Live

Generate unbiased random values from every fixed-precision decimal point within inclusive bounds, with copyable results and sample statistics.

About Random Decimal Generator

Use the Random Decimal Generator to sample an explicit decimal grid rather than generating continuous values and rounding afterward. Choose inclusive minimum and maximum bounds, 0 to 12 decimal places, and up to 100 values through the API or 30 in the visual interface. Each representable point at the selected precision—including eligible endpoints—has equal probability. Results appear as indexed cards with sample minimum, arithmetic mean, sample maximum, and comma-separated copying.

Generate Fixed-Precision Random Decimals

Workspace

Output studio

Shape the options below, then create a fresh output from the selected ingredients.

Complete the fields to prepare a result.

Enter the inclusive lower bound for generated values.

Enter the inclusive upper bound for generated values.

Enter the number of decimal places to keep in each generated value.

Enter how many swatches, rolls, picks, names, letters, or values you want returned.

Random Decimal Generator: numbers

Choose inclusive bounds, decimal places, and a count, then sample the precision grid.

Fixed-precision generation method

scaled_min = ceil(min × 10^p); scaled_max = floor(max × 10^p); draw an unbiased integer in that inclusive range, then divide by 10^p.

How it works

The bounds are scaled by 10^precision to an integer grid. A cryptographically strong 32-bit value from Web Crypto is mapped to that grid with rejection sampling, avoiding modulo bias, then divided by the scale for display. NIST describes the uniform distribution as equal probability over a range; this tool applies that idea to the finite set of representable fixed-precision values, limited to 2^32 grid points.

Examples

Random Decimal Generator: Unit interval

Example input
{
    "min": 0,
    "max": 1,
    "precision": 4,
    "count": 3
}
Expected result
{
    "numbers": [
        0.1284,
        0.5521,
        0.9033
    ],
    "result": "0.1284, 0.5521, 0.9033",
    "min": 0,
    "max": 1,
    "decimals": 4
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web Cryptography Level 2
  2. NIST/SEMATECH e-Handbook: Uniform Distribution

Frequently asked questions

Are the minimum and maximum inclusive?

Yes, when an endpoint lies on the selected precision grid. For example, 0 and 1 are both possible with four decimal places.

Why generate from a precision grid instead of rounding?

Rounding a continuous-style sample gives endpoint bins different widths from interior bins. Sampling the scaled integer grid directly makes every displayed fixed-precision value equally likely.

What is the maximum grid size?

The browser implementation accepts at most 4,294,967,296 representable values, matching the size of an unsigned 32-bit random domain used for unbiased rejection mapping.

Is this suitable for regulated lotteries or cryptographic keys?

No. It uses cryptographically strong browser randomness, but the page is not a certified drawing system, audit trail, or key-generation protocol. Use software approved for the applicable high-stakes process.