Choisir aléatoirement un chiffre en HTML PHP

Résolu
Mickael86480 Messages postés 660 Date d'inscription   Statut Membre Dernière intervention   -  
Zep3k!GnO Messages postés 2025 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour, je voudrais savoir s'il existait en HTML ou PHP une fonction permettant de choisir un chiffre au hasard entre 1 et 237



A voir également:

1 réponse

Zep3k!GnO Messages postés 2025 Date d'inscription   Statut Membre Dernière intervention   200
 
en PhP, la fonction rand https://www.php.net/manual/fr/function.rand.php
<?php
echo rand(1, 237);
?>
0