Home Menu

getrandmax

Show largest possible random value

Syntax

getrandmax ( void ) : int

Return

The largest possible random value returned by rand()

Examples

1

<?

$return = getrandmax();

echo $return;

?>
2147483647

2

<?

$return = getrandmax();

$randmin = 0;
$randmax = $return;

$randreturn = rand($randmin, $randmax);

echo $randreturn;

?>
1094120350

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms