Tag

seed

1 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 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
Mar 1, 2021 · Backend Development

PHP srand() – Seeding the Random Number Generator

This article explains PHP's srand() function, detailing its purpose of seeding the random number generator, optional seed parameter, lack of return value, and provides a complete example showing how to generate a seed from microtime and produce random numbers.

BackendRandomseed
0 likes · 1 min read
PHP srand() – Seeding the Random Number Generator
Laravel Tech Community
Laravel Tech Community
Feb 18, 2021 · Backend Development

PHP mt_srand Function – Seeding the Random Number Generator

The article explains PHP's mt_srand() function for seeding the Mersenne Twister random number generator, describes its optional integer seed parameter, notes that it returns no value, and provides a complete example with code and sample output.

BackendExamplePHP
0 likes · 1 min read
PHP mt_srand Function – Seeding the Random Number Generator
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"