base:16bit_xorshift_random_generator
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
base:16bit_xorshift_random_generator [2019-05-10 02:45] – vsariola | base:16bit_xorshift_random_generator [2019-08-12 15:41] (current) – Standardized format of the heading ftc | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === 16-bit " | + | ====== 16-bit " |
* original idea: [[https:// | * original idea: [[https:// | ||
* idea for fast 8-bit implementation: | * idea for fast 8-bit implementation: | ||
* ported by: Veikko Sariola | * ported by: Veikko Sariola | ||
- | Xorshift is a fast pseudorandom generator algorithm originally developed by [[https:// | + | Xorshift is a fast pseudorandom generator algorithm originally developed by [[https:// |
<code c> | <code c> | ||
Line 31: | Line 32: | ||
STA rng_zp_high | STA rng_zp_high | ||
... | ... | ||
- | ; the RNG, you can get 8-bit random numbers in A, leaves | + | ; the RNG. You can get 8-bit random numbers in A or 16-bit numbers |
+ | ; from the zero page addresses. Leaves | ||
random | random | ||
LSR | LSR | ||
Line 49: | Line 51: | ||
{{: | {{: | ||
- | |||
base/16bit_xorshift_random_generator.1557449136.txt.gz · Last modified: 2019-05-10 02:45 by vsariola