Easy Tutorial
❮ Func String Strpos Func Array Search ❯

PHP lcg_value() Function

PHP Math Reference Manual

Example

Returns a pseudo-random number in the range (0, 1):


Definition and Usage

The lcg_value() function returns a pseudo-random number in the range (0, 1).


Syntax

Technical Details

Return Value: A pseudo-random float value in the range (0, 1).
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Func String Strpos Func Array Search ❯