Prev: 9C8A Up: Map Next: 9CA8
9C9F: Random Number
Returns a random number from the seed taken at the start of the game.
Input
A Random seed?
Output
A Random number
GetRandomNumber 9C9F CALL CalculateRandom Call CalculateRandom to scale the roll.
9CA2 BIT 7,A Return if bit 7 of the scaled roll is clear.
9CA4 RET Z
9CA5 NEG Negate the accumulator.
9CA7 RET Return.
View the equivalent code in;
Prev: 9C8A Up: Map Next: 9CA8