Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Random Functionslcg_value>
^Random FunctionsLast updated: Mon, 26 Oct 2026

getrandmax

(PHP 4, PHP 5, PHP 7, PHP 8)

getrandmax — Show largest possible random value

Description

function getrandmax(): int

Returns the maximum value that can be returned by a call to rand().

Parameters

This function has no parameters.

Return Values

The largest possible random value returned by rand()

See Also


<Random Functionslcg_value>
^Random FunctionsLast updated: Mon, 26 Oct 2026