Prev: 38486 Up: Map Next: 38512
38505: Load A with a random number less than or equal to B
Used by the routine at 55349.
Input
B Cap for random value
Output
A Random number less than or equal to B (input)
38505 CALL 38486 Set new random seed and load LSB of this (random value) into A
38508 CP B If random value is greater than B...
38509 JR NC,38505 ...then generate another
38511 RET Return
Prev: 38486 Up: Map Next: 38512