PHP getrandmax()Fonctions

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

Exemples

Renvoie la valeur maximale possible d'un nombre aléatoire affichée en appelant la fonction rand() :

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

Exécuter l'exemple »

Définition et utilisation

La fonction getrandmax() renvoie, en appelantrand(), la valeur maximale possible d'un nombre aléatoire affichée par la fonction.


Syntaxe

getrandmax();

Détails techniques

Valeur de retour : La valeur maximale possible d'un nombre aléatoire affichée en appelant la fonction rand().
Type de retour : Integer
Version de PHP : 4+


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