Longhorn PHP 2025 - Call For Papers

getrandmax

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

getrandmaxShow largest possible random value

Description

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

add a note

User Contributed Notes 1 note

up
0
Anonymous
2 years ago
On a stock installation as of version 7.4.33 / 8.1.12, this function seems to return 2147483647 (maximum 32-bit integer).
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant