Home > PHP > Function > Math > getrandmax()

getrandmax()

getrandmax - Show largest possible random value

Syntax

int getrandmax ()

Arguments

-

Description

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

Version

PHP 4, 5

Return value

The largest possible random value returned by rand()