From 561087fa759a556d8891ef8a2d61f05852ddcef8 Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Wed, 6 Sep 2000 16:49:43 +0000 Subject: [PATCH] added function description for lcg_value() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32137 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/functions/math.xml b/functions/math.xml index 47c4a246ce..a366474fad 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,7 +1,7 @@ Mathematical Functions Math. - + Introduction @@ -556,6 +556,28 @@ $binary = base_convert ($hexadecimal, 16, 2); + + + lcg_value + Combined linear congruential generator + + + Description + + + double lcg_value + + + + + lcg_value 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. + + + + log