lcg_value - chung-leong/qb GitHub Wiki
lcg_value - Combined linear congruential generator
float 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.
Return Value:
A pseudo random float value in the range of (0, 1).
The return type and size of lcg_value() is controlled by the context of how the return value is used. If you assign lcg_value() to an array with four elements, four different pseudo-numbers will be returned.
Version
1.0 and above.