Tagged articles
3 articles
Page 1 of 1
Xianyu Technology
Xianyu Technology
Dec 15, 2022 · Fundamentals

How to Build Fair Lottery Systems Using Linear Congruential Generators

This article examines the technical foundations of lottery randomness, explains linear congruential generators and their parameter constraints, discusses implementation pitfalls such as low‑bit bias, and reviews several practical lottery algorithms—including selection, shuffle, reservoir sampling, red‑packet splitting, and probability methods—to achieve fair and scalable interactive draws.

FairnessLotteryalgorithm design
0 likes · 19 min read
How to Build Fair Lottery Systems Using Linear Congruential Generators
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.

Random Number Generationalgorithm fundamentalsgacha system
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.

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