entero aleatorio de php
echo random_int(0,50);
php número aleatorio
rand();
creación de números aleatorios entre rangos en php
The rand() function generates a random integer. Tip: If you want a random integer between 10 and 100 (inclusive), use rand (10,100). Tip: The mt_rand() function produces a better random value, and is 4 times faster than rand().