Mathématiques
Introduction Abs Acos acosh Asin asinh Atan Atan2 atanh base_convert BinDec Ceil Cos cosh DecBin DecHex DecOct deg2rad Exp Floor getrandmax hexdec lcg_value Log Log10 max min mt_rand mt_srand mt_getrandmax number_format OctDec pi pow rad2deg rand round Sin sinh Sqrt srand Tan tanh
Description
void mt_srand(int seed )
mt_srand initialise une meilleure valeur aléatoire avec seed.
<?php// initialise avec les microsecondes depuis la dernière seconde entière mt_srand((float) microtime()*1000000); $randval = mt_rand();?>
Voir aussi mt_rand, mt_getrandmax, srand, rand et getrandmax.