I have a number I need to multiply by a random amount (1-4%)
In PHP terms, I was thinking..
$percent = (double) ".0".mt_rand(1,4);
Would that yield .01 - .04? in a number form, not a string?
If so great, but is there a safer/more efficient way of doing this?