Tagged articles
randomness
16 articles · Page 1 of 1
A Reddit experiment showed that major LLMs consistently choose numbers between 7200 and 7500 when asked to pick a random value from 1 to 10000, revealing deterministic patterns rooted in training data bias, human heuristics, and serious security implications.
AIBiasLLM
0 likes · 11 min read

The article explains that AI’s apparent inspiration stems from massive training data, the specific prompts and context you provide, the transformer’s attention‑driven associative reasoning, controlled randomness during generation, and iterative feedback, showing that its “creativity” is a recombination of learned patterns rather than true invention.
AI creativityPrompt engineeringlarge language models
0 likes · 8 min read

This article explains common pitfalls of generating unique IDs with timestamps and Math.random(), shows why naive counters are unreliable in browsers, and demonstrates the robust, standards‑based solution using the built‑in crypto.randomUUID() method, which offers cryptographic security and near‑zero collision risk.
JavaScriptUnique IDcrypto
0 likes · 5 min read


DevOpsJun 12, 2024 · Backend Development
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.
AlgorithmBackendPHP
0 likes · 13 min read

This article explains the concepts of statistical and cryptographic randomness, compares their characteristics, outlines common tests, and reviews various random number generator types with code examples for PRNG and CSPRNG implementations.
CSPRNGGoPRNG
0 likes · 7 min read

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.
Determinismartificial intelligencebig data
0 likes · 5 min read

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.
ConcurrencyJDK11Java
0 likes · 3 min read

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.
ImplementationJavaLottery
0 likes · 19 min read

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

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.
QAprobabilitypseudo-random
0 likes · 7 min read

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.
distributiongame QAprobability testing
0 likes · 8 min read

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.
QASEEDprobability testing
0 likes · 6 min read

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.getRandomValuesMath.random
0 likes · 8 min read

The article uses Thanos’ snap from the Avengers movies as a springboard to explain the concepts of randomness, compare true and pseudo random numbers, describe a layered sampling model, discuss hardware true random generators, and show how Java provides various APIs for generating random values.
Javacomputer sciencecryptography
0 likes · 12 min read

The article uses Thanos' snap from the Avengers to examine the concept of randomness, compares true random numbers with pseudo‑random generators, explains quantum random number generators, and demonstrates how Java provides various APIs for generating random values, highlighting their strengths and limitations.
Javacomputer sciencecryptography
0 likes · 11 min read

This article investigates whether the 13‑digit user IDs used in Chinese car‑license lotteries are truly random, revealing how the ID generation, seed‑based selection, and hidden patterns—especially the influential seventh digit—affect outcomes, and demonstrates that simple linear models can achieve an AUC of around 0.8 in predicting winners, while also discussing the system’s opacity across major cities.
car license lotterydata analysisid-generation
0 likes · 17 min read
