Tag

linear congruential generator

1 views collected around this technical thread.

NetEase LeiHuo UX Big Data Technology
NetEase LeiHuo UX Big Data Technology
Feb 14, 2022 · Fundamentals

Understanding Random Number Generation and the Linear Congruential Method for Game Gacha Systems

This article explains how linear congruential generators produce pseudo‑random numbers, demonstrates their use with step‑by‑step examples, visualizes the distribution of generated values, and applies the method to design a simple gacha system while discussing its statistical properties and practical limitations.

algorithm fundamentalsgacha systemlinear congruential generator
0 likes · 6 min read
Understanding Random Number Generation and the Linear Congruential Method for Game Gacha Systems
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.

Pseudo‑randombackendlcg_value
0 likes · 1 min read
PHP lcg_value() Function – Combined Linear Congruential Generator