Choisir aléatoirement un chiffre en HTML PHP
Résolu
Bonjour, je voudrais savoir s'il existait en HTML ou PHP une fonction permettant de choisir un chiffre au hasard entre 1 et 237
1 réponse
-
en PhP, la fonction rand https://www.php.net/manual/fr/function.rand.php
<?php echo rand(1, 237); ?>