PHP 5.4.37 Released

getrandmax

(PHP 4, PHP 5)

getrandmaxShow largest possible random value

Description

int getrandmax ( void )

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

Return Values

The largest possible random value returned by rand()

See Also

add a note add a note

User Contributed Notes 2 notes

up
0
davidkevork at hotmail dot com
4 days ago
<?php

echo getrandmax(); // will return the largest number that rand() function would return

// output: 32767
up
0
davidkevork at hotmail dot com
4 days ago
<?php

echo getrandmax(); // will return the largest number that rand() function would generate

// output: 32767

?>
To Top