>>12133640
1/2
RNG and randomness don't refer to the same thing. RNG refers specifically to anything the developers programmed to be random as a part of the game's design using what is analogous to a digital dice roll. Randomness refers to all luck based elements, even those whose randomness is unintentional or incidental. All RNG is random, but not all randomness is RNG.
The flying cheep cheeps in Super Mario Bros. 2 are an example of RNG. We can tell by looking at the code in
>>12133152 that a variable, PseudoRandomBitReg, is being used like a digital dice roll to modify the behavior of newly spawned cheep cheeps. Specifically, RNG determines the length of the delay between cheep cheeps spawning and at what velocity they spawn with. There is code that runs every frame elsewhere in the game that fills the PseudoRandomBitReg variable with a pseudo random number (in SMB2's case, it generates pseudo random numbers using something called a linear feedback shift register), and that number is used deliberately to randomize an element of game design. In the gif pictured, Mario does the exact same movement, yet due to RNG, the cheep cheeps behave differently.