ref: 8f81e71f192bce4b6f56b042638da376737e5abc
dir: /engine/math/random.asm/
Random_:: ; Generate a random 16-bit value. ldh a, [rDIV] ld b, a ldh a, [hRandomAdd] adc b ldh [hRandomAdd], a ldh a, [rDIV] ld b, a ldh a, [hRandomSub] sbc b ldh [hRandomSub], a ret