|  | 
|  | 
 | Mathématiques 
 Introduction
 Constantes mathématiques
 abs
 acos
 asin
 atan
 atan2
 base_convert
 bindec
 ceil
 cos
 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
 sqrt
 srand
 tan
 
 | 
Génère une valeur aléatoire
 int  rand     (int min, int max)
 Appelée sans les options min et
max,  rand() retourne un
nombre pseudo-aléatoire entre 0 et
 RAND_MAX.
Si vous voulez un nombre aléatoire entre 5 et 15
    (inclus), par exemple, utilisez rand (5, 15).N'oubliez pas d'initialiser le générateur de nombres
aléatoires avec  srand().
 
 Note : 
Dans les versions antérieures à la 3.0.7 la signification
du paramètre max était longueur.
Pour avoir le même résultat, il faut  utiliser
mt_rand (5, 11) pour obtenir un nombre aléatoire
entre 5 et 15.
 Voir aussi
 srand(),
 getrandmax(),
 mt_rand(),
 mt_srand() et
 mt_getrandmax().
 
 | 
 |  | 
			
				|  |