fonction getrandmax PHP ()
Exemples
Renvoie la valeur maximale possible du nombre aléatoire en appelant la fonction rand () affiche:
<?php
echo(getrandmax());
?>
echo(getrandmax());
?>
Exécution instance »
Définition et utilisation
La fonction getrandmax () retourne en appelant le rand () la valeur maximale possible de l'affichage de la fonction de nombres aléatoires.
grammaire
getrandmax();
détails techniques
Retours: | () La valeur maximale possible en appelant la fonction rand pour afficher le numéro aléatoire. |
---|---|
Type de retour: | entier |
PHP version: | 4+ |
PHP Math Reference