PHP 8.4.1 Released!

getrandmax

(PHP 4, PHP 5, PHP 7, PHP 8)

getrandmaxShow largest possible random value

Descripción

getrandmax(): int

Returns the maximum value that can be returned by a call to rand().

Parámetros

Esta función no tiene parámetros.

Valores devueltos

The largest possible random value returned by rand()

Ver también

add a note

User Contributed Notes 1 note

up
0
Anonymous
2 years ago
On a stock installation as of version 7.4.33 / 8.1.12, this function seems to return 2147483647 (maximum 32-bit integer).
To Top