public static function num($min = 0, $max = 2147483647) { if (self::$RSeed == 0) { self::seed(mt_rand()); } self::$RSeed = self::$RSeed * 125 % 2796203; return self::$RSeed % ($max - $min + 1) + $min; }