Jump to content

Random number generator: Difference between revisions

no edit summary
(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...")
 
No edit summary
 
Line 17: Line 17:


''TODO'': Verify this page for Boktai 3
''TODO'': Verify this page for Boktai 3
= See also =
* [[RNG Table]]


[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Boktai 1]] [[Category:Boktai 2]] [[Category:Boktai 3]]
[[Category:Boktai 1]] [[Category:Boktai 2]] [[Category:Boktai 3]]