public static function random($min, $max) { $min = (int) $min; $max = (int) $max; return mt_rand($min, $max); }