Random Signed Decimal Generator
Generates a random decimal between −100 and 100 to two decimal places, with the sign drawn independently of the size so a large negative is exactly as likely as a large positive — built for maths practice with signed numbers and for testing code or spreadsheets that mishandle negative values.
What this generator does
Produces a decimal that may be positive or negative, for testing code and spreadsheets that handle sign as well as magnitude — a common source of bugs when only positive values were tried.
How to use this tool
- Press generate for a random signed decimal.
Worked examples
- Format
- 1.81, -28.09 and 8.86 — three consecutive draws
Common use cases
- Maths practice with positive and negative decimals
- Placeholder data needing signed values
- Testing number-formatting code
How this generator works
A magnitude between 0 and 100 is drawn and rounded to two decimal places, and a sign is drawn separately as a fair coin flip, so positive and negative results are equally likely. There is nothing to set: the range is fixed and every press is a fresh draw.
Limitations and good to know
- The magnitude always lies between 0 and 100 and there is no control to change that. For a different span, the decimal range generator takes a minimum and a maximum.
- The sign is drawn independently of the magnitude, so a large negative is exactly as likely as a large positive.
- Zero can be drawn, and zero is neither positive nor negative — it is shown as a plain 0 whichever sign came up, so a long run will not split perfectly in two.
- At most two decimal places are shown, with trailing zeros dropped, so -14.70 appears as -14.7.