PHP mt_getrandmax()Fonctions

PHP Math 参考手册Manuel de référence mathématique PHP

Exemples

Renvoie la valeur maximale possible du nombre aléatoire affiché en appelant la fonction mt_rand():

<?php
echo(mt_getrandmax());
?>

Exécuter l'exemple »

Définition et utilisation

La fonction mt_getrandmax() renvoie la valeur maximale possible du nombre aléatoire affiché en appelantmt_rand()la fonction.


Syntaxe

mt_getrandmax();

Détails techniques

Valeur de retour : La valeur maximale possible du nombre aléatoire affiché en appelant la fonction mt_rand():
Type de retour : Integer
Version PHP : 4+


PHP Math 参考手册Manuel de référence des fonctions mathématiques PHP Autres extensions