php man page for lcg_value

Query: lcg_value

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

LCG_VALUE(3)								 1							      LCG_VALUE(3)

lcg_value - Combined linear congruential generator

SYNOPSIS
float lcg_value (void )
DESCRIPTION
lcg_value(3) returns a pseudo random number in the range of (0, 1). The function combines two CGs with periods of 2^31 - 85 and 2^31 - 249. The period of this function is equal to the product of both primes.
RETURN VALUES
A pseudo random float value in the range of (0, 1)
SEE ALSO
rand(3), mt_rand(3). PHP Documentation Group LCG_VALUE(3)
Related Man Pages
rand_r(3c) - hpux
srand(3ucb) - opensolaris
srand(3) - php
mt_srand(3) - php
rand(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch