Menu Home

lcg_value

osbo.com | PHP | Functions | lcg_value

Combined linear congruential generator

Syntax

lcg_value ( void ) : float

Return

A pseudo random float value between 0.0 and 1.0, inclusive.

Examples

<?

$return = lcg_value();

echo $return;

?>
0.32872720725895

PHP