Re: A86: Random Num
[Prev][Next][Index][Thread]
Re: A86: Random Num
In a message dated 2/13/00 8:04:47 PM Mountain Standard Time,
neophile_17@hotmail.com writes:
> I was wondering why it wouldn't be be easier to find a random number
> like this.
> ld a,r ;to find 1 of 7 rand int
> inc a ;1 more inc a for 6, 2 for 5 etc.
> and %00000111
> dec a ;as many decs as incs
>
> rather than some of the longer routines out there.
> ~neophile_17
What happens when R = %xxxxx111 before loading it into A though? You'll
still get one of 8 random numbers...
Or am I missing something? ;)
JayEll