Tag

Random Number Generation

0 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Nov 23, 2022 · Backend Development

Understanding PHP mt_rand and Five Ways to Generate Random Numbers

This article explains how PHP's mt_rand function works, its deterministic nature when the seed and PHP version are identical, and demonstrates five distinct code techniques—including range‑shuffle, unique random loops, mt_rand with array filtering, array slicing, and microtime‑seeded shuffling—to produce pseudo‑random sequences.

PHPRandom Number Generationbackend
0 likes · 4 min read
Understanding PHP mt_rand and Five Ways to Generate Random Numbers
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
Kuaishou Large Model
Kuaishou Large Model
Oct 22, 2021 · Fundamentals

How Noise Powers Real‑Time Short‑Video Effects: Algorithms, Samples & GPU RNG Comparison

This article explains how various noise algorithms—value, gradient, simplex, cellular, and FBM—are applied to short‑video visual effects, showcases shader implementations and image examples, and compares GPU random‑number generators to help developers choose the right balance of performance and visual quality.

GPURandom Number GenerationShader
0 likes · 17 min read
How Noise Powers Real‑Time Short‑Video Effects: Algorithms, Samples & GPU RNG Comparison
macrozheng
macrozheng
Jun 25, 2021 · Fundamentals

Mastering Java Random Number Generation: Random, ThreadLocalRandom, SecureRandom & Math

This article reviews four Java random number generation techniques—Random, ThreadLocalRandom, SecureRandom, and Math.random()—detailing their usage, underlying algorithms, thread‑safety, performance trade‑offs, and appropriate scenarios, helping developers choose the right tool for their applications.

ConcurrencyJavaMath.random
0 likes · 15 min read
Mastering Java Random Number Generation: Random, ThreadLocalRandom, SecureRandom & Math