(PHP 3>= 3.0.6, PHP 4 )
seed로 난수 발생기를 심는다.
// seed with microseconds since last "whole" second mt_srand ((double) microtime() * 1000000); $randval = mt_rand();
mt_rand(), mt_getrandmax(), srand(), rand(), 그리고 getrandmax()를 참고하라.