Search w3schools.com:

SHARE THIS PAGE

PHP getrandmax() Function


PHP Math Reference Complete PHP Math Reference

Definition and Usage

The getrandmax() function returns the maximum random number that can be returned by a call to the rand() function.

Syntax

getrandmax()


Example

<?php
echo(getrandmax());
?>

The output of the code above could be:

32767


PHP Math Reference Complete PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]