getrandmax

(PHP 4, PHP 5)

getrandmaxShow largest possible random value

Descrierea

int getrandmax ( void )

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

Valorile întoarse

The largest possible random value returned by rand()

A se vedea și

add a note add a note

User Contributed Notes 1 note

up
0
navjot at nspeaks dot com
4 days ago
The maximum value returned by getrandmax() is valid only if you call the rand() function without any parameter.

For eg

<?php
getrand
(35000, 50000);
?>

would still work because you have specified the limits even though getrandmax() returned 32767.
To Top