Kirby 64 uses two types of random number generators in game:
The soft RNG seed (i.e. the current index of the soft RNG array at 0x8003DF20
) is located at 0x8003E320
, and the hard RNG is located at 0x8003E324
. The next hard RNG value is generated as such:
(D_8003E324 = (D_8003E324 * 0x343FD) + 0x269EC3);