PHP getrandmax()Fonctions
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());
?>
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+ |
Manuel de référence des fonctions mathématiques PHP Autres extensions