base:fast_8bit_ranged_random_numbers

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

base:fast_8bit_ranged_random_numbers [2015-04-17 04:31] 127.0.0.1 external edit |
base:fast_8bit_ranged_random_numbers [2019-08-12 15:39] (current) ftc Added heading and credits to the article |
||
---|---|---|---|

Line 1: | Line 1: | ||

+ | ====== Fast 8bit ranged random numbers ====== | ||

+ | by kerm1t | ||

+ | |||

Randomness may be effective, since a random element is chosen from a table that | Randomness may be effective, since a random element is chosen from a table that | ||

is randomly generated. On the other hand, memory consumption may be quite huge. | is randomly generated. On the other hand, memory consumption may be quite huge. | ||

Line 55: | Line 58: | ||

- multiply the random number with your max. number | - multiply the random number with your max. number | ||

- use the highbyte of the result | - use the highbyte of the result | ||

- |

base/fast_8bit_ranged_random_numbers.txt ยท Last modified: 2019-08-12 15:39 by ftc