![]() |
The mt_getrandmax() is an inbuilt function in PHP that is used to return the largest possible value of random numbers. Syntaxmt_getrandmax(): int ParameterThis function does not accept any parameter. Return ValueThe mt_getrandmax() function returns the integer representing the maximum value that can be generated by the mt_rand() Function. Program 1: The following program demonstrates mt_getrandmax() Function. PHP
Output
Maximum random number: 2147483647 Program 2: The following program demonstrates mt_getrandmax() Function. PHP
Output
Random number: 2084185664 Reference: https://www.php.net/manual/en/function.mt-getrandmax.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |