Random ($F517)

Random_3 ($F511)

This routine generates a random 1-byte number, and places it in the A register. Random_3 runs through the random number generator algorithm three times. The random number seed is stored in the three bytes pointed to by $C87B.



A-reg contains the generated random number

All other registers are preserved.