Random Number Calculator
Generate one or several pseudorandom values between a minimum and maximum using Whole number or Decimal mode.
What does random mean here?
A pseudorandom generator produces values that behave randomly for ordinary selection but are algorithmically generated. The app uses Dart math.Random(), not a cryptographically secure generator. It cannot promise a particular next value, guaranteed fairness for regulated draws, or suitability for passwords and security tokens.
\text{Integer mode: }\lceil L\rceil\le X\le\lfloor U\rfloor\text{Decimal mode: }L\le X<UChoose Whole number or Decimal
Both modes require Minimum < Maximum. Minimum and Maximum may be negative and may contain decimal values. Whole number has advanced How many numbers and Unique values only controls; Decimal has Decimal places and advanced How many numbers. Count defaults to 1 and must be a whole number from 1 to 100.
Both modes require Minimum < Maximum. Minimum and Maximum may be negative and may contain decimal values. Whole number has advanced How many numbers and Unique values only controls; Decimal has Decimal places and advanced How many numbers. Count defaults to 1 and must be a whole number from 1 to 100.
Whole number — eligible endpoints included
Minimum = 1, Maximum = 6 gives eligible integers 1, 2, 3, 4, 5 and 6, inclusive. With fractional bounds 1.2 to 5.8, the app uses ceil(1.2)=2 and floor(5.8)=5. A range without an integer produces an error. The inclusive integer span must be no more than 2,147,483,647.
Repeat or select unique values
Select Allow repeats for independent draws in which a number can appear again. Select No repeats to return distinct whole numbers; requesting more distinct numbers than the available integer span is rejected. The Unique values only choice exists in Whole number mode, not Decimal mode.
Select Allow repeats for independent draws in which a number can appear again. Select No repeats to return distinct whole numbers; requesting more distinct numbers than the available integer span is rejected. The Unique values only choice exists in Whole number mode, not Decimal mode.
Decimal — precision changes the display
For a decimal range of 0 to 1, the app generates a floating-point value from the lower endpoint up to but excluding the upper endpoint before formatting. Decimal places defaults to 4 and allows 0 through 10. Display rounding can make two different raw numbers look identical and can show a rounded upper-endpoint label; it does not guarantee unique displayed decimals.
For a decimal range of 0 to 1, the app generates a floating-point value from the lower endpoint up to but excluding the upper endpoint before formatting. Decimal places defaults to 4 and allows 0 through 10. Display rounding can make two different raw numbers look identical and can show a rounded upper-endpoint label; it does not guarantee unique d
Formulas and notation
Whole number: a = ⌈min⌉, b = ⌊max⌋, N = b − a + 1.
min and max are the entered bounds; ⌈ ⌉ rounds upward, ⌊ ⌋ rounds downward, and N is the number of eligible integers, a through b inclusive.
Decimal: x = min + u(max − min).
x is the generated value before display rounding; u is a pseudorandom fraction with 0 ≤ u < 1. Decimal places determines how the result is displayed.
Results and responsible use
Each generated run produces its own values; the result includes a numbered table and a range/count summary. Example numbers in this guide illustrate possible outcomes only, not promised values. Use for everyday choices; do not use for cryptographic keys, security-critical tasks or regulated gambling.
Quick answers
Can the maximum whole number appear?
Yes. Integer mode includes the upper eligible whole number.
Is this suitable for a password generator?
No. The calculator explicitly uses ordinary pseudorandom values, not a secure random generator.
Can I request more unique numbers than the range contains?
No. In Whole number mode with No repeats, the requested count cannot exceed the available integers.
