This is an important floating point math routine, see: - https://www.atarimagazines.com/compute/issue72/random_numbers.php Example code utilizing the routine: - https://stackoverflow.com/questions/44937759/getting-random-number-from-6502-assembler/44937995