The following code generates two random decimal values, then subtracts them to get $c.
$c
$a = mt_rand(5, 75); $b = mt_rand(5, 75); $adjuster = mt_rand
Do something like this to see if $c is a whole number (possibly stored as a double):
if(intval($c) == $c) { echo "I'm a whole number"; }
See here: http://3v4l.org/ubPK4
A double subtracting a double results in a double, even if that number is a whole number
$c = (int) ($b - $a);