The maximum value returned by getrandmax() is valid only if you call the rand() function without any parameter.
For eg
<?php
getrand(35000, 50000);
?>
would still work because you have specified the limits even though getrandmax() returned 32767.
(PHP 4, PHP 5, PHP 7)
getrandmax — Mostrar el mayor valor aleatorio posible
Devuelve el valor máximo que puede ser devuelto por una llamada a rand().
El valor aleatorio más grande posible devuelto por rand()
The maximum value returned by getrandmax() is valid only if you call the rand() function without any parameter.
For eg
<?php
getrand(35000, 50000);
?>
would still work because you have specified the limits even though getrandmax() returned 32767.