Re: A86: Random


[Prev][Next][Index][Thread]

Re: A86: Random






BIOSERRORS@aol.com wrote:

> Hello.  How do I get a random number with a range of 0 to HL?

 call _setxxxxop2
 call _RANDOM            ;hopefully _RANDOM doesn't destroy OP2
 call _FPMULT
 call _CONVOP1

;output is random number in hl with a range of old hl


References: