1 2 3 4 5 6 7
<?php function random_float ($min,$max) { return ($min+lcg_value()*(abs($max-$min))); } echo random_float(0,2);
1
0.23207861072579