You always can do fixed point math with integers. To use let's say 2 decimals, multiply all your real values by 100, and convert it to integers.
After all integer calculations, convert to double and divide it by 100.
(double) (RandomMinMax( (int) (min*100), (int) (max*100) ) ) / 100
|