mt_getrandmax

PHP 4, PHP 5, PHP 7, PHP 8
mt_getrandmax - Show largest possible random value

Example #1 Calculate a random floating-point number

Result: float(0.91601131712832) float(16.511210331931)
PHP Version:


Example #2 of mt_getrandmax

PHP Version:


Function mt_getrandmax:

Mathematical Functions Functions

Most used PHP functions