function randomFloat($min = 0, $max = 20){ $num = $min + mt_rand() / mt_getrandmax() * ($max - $min); return sprintf("%.2f", $num); }