SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

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

6.50.29 mt_srand

[ Exemples avec mt_srand ]   PHP 3>= 3.0.6, PHP 4 >= 4.0.0

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.


Chapitre précédentChapitre suivantAccueil nexen.net