This randomizer generates integers or fixed-precision decimals with exact endpoint control, uniqueness, sorting, layout, and optional seeding.
Statistics
Decimal Random Number Generator
Generate integers or fixed-precision decimals with exact endpoint, uniqueness, sorting, and seed controls.
Calculator
About this calculator
Formula notes
Each value is drawn uniformly from the exact grid scaled by 10^precision, then formatted to the requested precision; endpoints follow the selected boundary policy.
Worked examples
- Example: two unique decimals from 0 to 1 with closed endpoints and precision 2 can return 0.42 and 0.87.
- Three unique integers from 1 to 10 in ascending order can return 1, 4, 9.
How to use it
- Choose decimal or integer and the precision.
- Set the minimum, maximum, count, and endpoint policy.
- Choose duplicates, sorting, layout, and an optional seed, then read the generated numbers.
Frequently asked questions
What do the endpoint policies mean?
Closed includes both endpoints; left-closed includes only the minimum; right-closed includes only the maximum; open excludes both.
Why does unique mode sometimes fail?
When the requested count exceeds the number of representable values, the calculator rejects the input.
Limits and interpretation
- The generator draws from an exact finite grid; extremely wide or fine ranges may exceed safe integer limits.
- A seed makes the sequence reproducible but not cryptographically secure.