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