Are PHP random numbers predictable? if so, how difficult would it be to predict random numbers that range from 1 to 32? and is there any way to make this unpredictable?
<?php function rand_best($min, $max) { $generated = array(); for ($i = 0; $i < 100; $i++) { $generated[] = mt_rand($min, $max); } shuffle($generated); $position = mt_rand(0, 99); return $generated[$position]; } ?>
zista source share