Back to Skool Routines
25233: Return a random number in A
Used by the routines at 25296, 25815, 26752, 29716, 30555, 30706, 30804, 31254, 31502, 31573, 31915, 61487, 61533, 61696, 62032, 62178 and 62910.
25233 PUSH HL
25234 LD HL,(32765) Pick up the current random number "seed" from 32765
25237 INC HL Update the seed
25238 INC H
25239 LD (32765),HL
25242 LD A,(23672) Pick up the LSB of the system variable FRAMES in A
25245 XOR (HL) Now A=a pseudo-random number
25246 POP HL
25247 RET