Random number generator: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 October 2024

5 August 2024

  • curprev 19:1519:15, 5 August 2024Raphi talk contribs 1,516 bytes +1,516 Created page with "The GBA Boktai games use a very simple method of generating random numbers: # There's a list of 1024 pregenerated u16 random numbers stored in EWRAM ("RNG Table") # The game keeps track of the last list index used in IWRAM ("RNG Index") # When the game needs a random number, it increments the RNG index (mod 1024)... # ...and then returns <code>RNG_Table[RNG_Index]</code>. # When the game needs a random value within a certain range, it instead returns <code>(RNG_Table[RN..."