PHP getrandmax() - Math Functions

What is getrandmax Function?

Explanation

The "getrandmax()" function returns the largest possible random number.

Syntax:

getrandmax()

In the above syntax "getrandmax" function returns the random value, usually no parameters are provided.

Example :


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

32767

In the above example the highest possible random number "32767" is returned.

PHP Topics


Ask Questions

Ask Question