|
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.41 srandPHP 3, PHP 4 >= 4.0.0Description
void srand(int seed )
srand initialise le générateur de
nombres aléatoires avec seed.
|
<?php // initialise avec les microsecondes depuis la dernière seconde entière srand((float) microtime()*1000000); $randval = rand(); ?>
|
Voir aussi
rand,
getrandmax,
mt_rand,
mt_srand et
mt_getrandmax.
|