How to use getrandmax in PHP

This article describe about getrandmax() Function in PHP.
  • 1291

getrandmax() Function

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

Syntax

getrandmax()

 

Example

 

<html>
<body>
<?php
echo(getrandmax());
?>
</body>
</html>

 

Output


getrandmaxphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.