PHPize Online / SQLize Online

Donate Popular

mt_getrandmax

Tags: PHP 5.x PHP 7.x PHP 8.x

mt_getrandmax — Show largest possible random value.

Description

mt_getrandmax(
    
): int
Returns the maximum value that can be returned by a call to mt_rand().

Return Values

Returns the maximum random value returned by a call to mt_rand() without arguments, which is the maximum value that can be used for its max parameter without the result being scaled up (and therefore less random).