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