getrandmax

PHP 4, PHP 5, PHP 7, PHP 8
getrandmax - Show largest possible random value

getrandmax( ): int

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

Parameters

This function has no parameters.

Return Values

The largest possible random value returned by rand

Related Functions

Example of getrandmax

Show all examples for getrandmax

PHP Version:


Function getrandmax:

Mathematical Functions Functions

Most used PHP functions