base:ax_tinyrand8
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
base:ax_tinyrand8 [2021-11-27 23:53] – created wil | base:ax_tinyrand8 [2021-11-28 00:00] – added plot wil | ||
---|---|---|---|
Line 6: | Line 6: | ||
The seeding function was tricky, since putting any two values into b1 and c1 comes with a 10% risk of ending up in a cycle with shorter period. Therefore, a seeding function is provided that takes an 8 bit values and generates a seed that is guaranteed to be in cycle with a period of 59748. | The seeding function was tricky, since putting any two values into b1 and c1 comes with a 10% risk of ending up in a cycle with shorter period. Therefore, a seeding function is provided that takes an 8 bit values and generates a seed that is guaranteed to be in cycle with a period of 59748. | ||
+ | |||
+ | In a test, I plotted the output of 51200 random values, which don't seem to reveal any visible patterns: | ||
+ | |||
+ | {{ : | ||
< | < |
base/ax_tinyrand8.txt · Last modified: 2021-11-29 00:12 by wil