Here's a function that will work with any range:
function multiplier($min,$max,$costant=100){ return mt_rand($min*$costant,$max*$costant)/$costant; } echo multiplier(0,1,10000);
You can adjust precision increasing/decreasing the constant.