User Tools

Site Tools


kirby64_the_crystal_shards:rng

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kirby64_the_crystal_shards:rng [2021/02/22 21:45] (current)
someone2639 created simple RNG page for kirby 64
Line 1: Line 1:
 +====== RNG ======
  
 +Kirby 64 uses two types of random number generators in game:
 +
 +  * A "​soft"​ RNG which iterates through a set of 1024 predetermined 8-bit values, and
 +
 +  * A "​hard"​ RNG which is your typical seeded pseudo-random number generator.
 +
 +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: <code c>​(D_8003E324 = (D_8003E324 * 0x343FD) + 0x269EC3);</​code>​
kirby64_the_crystal_shards/rng.txt ยท Last modified: 2021/02/22 21:45 by someone2639