Tagged articles
1 articles
Page 1 of 1
Laravel Tech Community
Laravel Tech Community
Feb 1, 2021 · Backend Development

PHP lcg_value() Function – Combined Linear Congruential Generator

The article explains PHP’s lcg_value() function, which generates a pseudo‑random float between 0 and 1 by combining two linear congruential generators with periods 2^31‑85 and 2^31‑249, describes its return value, provides a PHP code example, and shows a sample output.

Backendlcg_valuelinear congruential generator
0 likes · 1 min read
PHP lcg_value() Function – Combined Linear Congruential Generator