Hi Phil,

> How often do you need to call mt_srand(); ?  

As of version 4.2.0 you don't have to call it at all. If your PHP
installation is an earlier version than that, call it once per script,
before generating any random numbers, e.g:

mt_srand($seed);
$randomA = mt_rand();
$randomB = mt_rand();
$randomC = mt_rand();

> Just once?  Or each time the page gets reloaded?

Uh... same thing, surely?

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to