Tag

Pseudo‑random

2 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Apr 27, 2022 · Backend Development

Why Using Fixed Seeds with Java Random Prints "Hello World"

This article explains how seeding Java's Random with specific integer values generates deterministic character sequences that spell "hello world", walks through the underlying ASCII conversion, shows code examples, and discusses related Java source quirks and seed‑search techniques.

Code ExplanationHello WorldJava
0 likes · 10 min read
Why Using Fixed Seeds with Java Random Prints "Hello World"
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.

Pseudo‑randomQAgame development
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 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.

Pseudo‑randomQAgame development
0 likes · 6 min read
Understanding Random Number Generation and Its Impact on Game Probability Testing
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
IT Xianyu
IT Xianyu
Oct 16, 2020 · Fundamentals

Java Random Class: Constructors, Methods, and Implementation Details

This article provides a comprehensive overview of Java's Random class, describing its constructor, implemented interfaces, direct subclasses, and detailed explanations of all public methods—including setSeed, next, nextBytes, nextInt, nextLong, nextBoolean, nextFloat, nextDouble, and nextGaussian—along with the underlying linear‑congruential algorithm and code examples.

Core LibraryJavaProgramming
0 likes · 12 min read
Java Random Class: Constructors, Methods, and Implementation Details
Qunar Tech Salon
Qunar Tech Salon
Apr 25, 2015 · Fundamentals

Why a Java Program Using Random with Fixed Seeds Always Prints "Hello world"

Although the program uses java.util.Random with different seed values, each execution prints the same 'Hello world' because the Random instances are initialized with fixed seeds, causing the pseudo‑random generator to produce identical sequences that map to the characters forming the phrase.

JavaProgrammingPseudo‑random
0 likes · 5 min read
Why a Java Program Using Random with Fixed Seeds Always Prints "Hello world"