Tag

randomness

0 views collected around this technical thread.

DevOps
DevOps
Jun 12, 2024 · Backend Development

Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP

This article examines four common WeChat red packet distribution algorithms—simple random, double‑mean, line‑segment division, and array_rand optimization—explaining their principles, PHP implementations, performance characteristics, and how to verify randomness, providing code samples and comparative analysis for developers.

AlgorithmPHPRed Packet
0 likes · 13 min read
Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP
Model Perspective
Model Perspective
Dec 5, 2023 · Fundamentals

Predicting the Future: How Randomness, Determinism, and Math Interact

This article examines whether the world is governed by chance or necessity, discussing quantum uncertainty, classical determinism, the dual role of knowledge, and how mathematics, probability, AI, and big‑data analytics together shape our ability to understand and forecast complex systems.

artificial intelligencebig datadeterminism
0 likes · 5 min read
Predicting the Future: How Randomness, Determinism, and Math Interact
Cognitive Technology Team
Cognitive Technology Team
May 3, 2023 · Fundamentals

Correct Usage of ThreadLocalRandom and the Predictable Random Number Pitfall in Java

The article explains why ThreadLocalRandom should not be stored in a static field, demonstrates how using ThreadLocalRandom.current().nextX(...) avoids predictable random numbers, compares behavior between JDK 11 and JDK 19, and provides the proper usage pattern with code examples.

ConcurrencyJDK11JDK19
0 likes · 3 min read
Correct Usage of ThreadLocalRandom and the Predictable Random Number Pitfall in Java
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Dec 14, 2021 · Game Development

Probability Testing: Practical Experience and Guidelines for Game QA

This article shares practical experience on probability testing in games, covering boundary‑value testing, avoiding misleading probability placements, and clear probability disclosure, while illustrating common pitfalls with code examples and real‑world case studies.

boundary testinggame QAprobability disclosure
0 likes · 8 min read
Probability Testing: Practical Experience and Guidelines for Game QA
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Dec 10, 2021 · Game Development

Ensuring Reasonable Randomness: QA Perspectives on Pseudo‑Random Distribution in Games

The article examines how game QA professionals can assess and validate the fairness of random systems, discuss the pitfalls of unadjusted probabilities, and explain how pseudo‑random distributions are used to align player expectations while introducing new testing challenges.

Game developmentPseudo‑randomQA
0 likes · 7 min read
Ensuring Reasonable Randomness: QA Perspectives on Pseudo‑Random Distribution in Games
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Dec 6, 2021 · Game Development

How to Verify the Correctness of Probabilities in Game QA

This article explains how QA engineers can rigorously test and validate in‑game probability settings by collecting large samples, analyzing distribution patterns, and using statistical visualizations to ensure random mechanics behave as intended.

Game developmentdistributiongame QA
0 likes · 8 min read
How to Verify the Correctness of Probabilities in Game QA
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Dec 1, 2021 · Fundamentals

Understanding Random Number Generation and Its Impact on Game Probability Testing

The article explains how pseudo‑random numbers are generated, why true randomness differs, shows common algorithms and code examples, and provides practical guidelines for seed handling to avoid misleading probability myths in games.

Game developmentPseudo‑randomQA
0 likes · 6 min read
Understanding Random Number Generation and Its Impact on Game Probability Testing
360 Tech Engineering
360 Tech Engineering
Dec 16, 2019 · Information Security

Understanding Random Number Generation for Lottery Programs and Cryptographic Security in JavaScript

This article explains the differences between true and pseudo‑random numbers, why JavaScript's Math.random is unsuitable for secure lottery draws, and how to use the Web Crypto API's Crypto.getRandomValues with a provided code example to achieve cryptographically strong randomness.

AlgorithmCrypto.getRandomValuesJavaScript
0 likes · 8 min read
Understanding Random Number Generation for Lottery Programs and Cryptographic Security in JavaScript