Math and physics › Transitions, randomness, numbers
Randomness: seeds, distributions and fairness
A computer cannot roll a die. Its “random” numbers come from a formula, and the same starting number, called the seed, always produces the same sequence. So every player who enters the same seed gets the same world. The page also looks at what changes when you add dice together, how to scatter points and trees without clumps, and why fair randomness feels like cheating to a player.
Why this matters
Randomness is everywhere in a game: where a tree grows, what drops from a chest, whether a shot hits. Use it carelessly, and the forest comes out in clumps and players on a network end up in different worlds. A player quits after a streak of misses that “couldn’t happen.” Knowing how random numbers work fixes all of this.
You will use fractions and lerp from earlier lessons, and the quaternion for random rotations.