fonction mt_getrandmax PHP ()
Exemples
Renvoie un nombre aléatoire en appelant mt_rand () affiche les valeurs maximales possibles:
<?php
echo(mt_getrandmax());
?>
echo(mt_getrandmax());
?>
Exécution instance »
Définition et utilisation
mt_getrandmax () renvoie en appelant mt_rand () la valeur maximale possible de l'affichage de la fonction de nombres aléatoires.
grammaire
mt_getrandmax();
détails techniques
Retours: | En appelant mt_rand () pour afficher un nombre aléatoire de la valeur maximale possible: |
---|---|
Type de retour: | entier |
PHP version: | 4+ |
PHP Math Reference