A83: Random Numbers
[Prev][Next][Index][Thread]
A83: Random Numbers
I am having a hard time using random numbers, I can generate them, and
move them to op1, but how can I use that to compare it to a set value,
say like 65, if I want the rand value to range from 1 to 100?
Here is what I got so far:
call _random
ld a,100
call _setxxop2
call _fpmult
ld a,65
call _setxxop2
call _cpop1op2
now what? How do I test the cpop1op2, and am I generating the random number
right?
Rob
|-----------------------------------------------------------|
|Robert M. Gardner | Turbo C++ Programmer |
|Lilprog@prairienet.org | HTML Web page writer |
|Parkland Cross Country | Knows Unix, Dos, and Windows |
|-----------------------------------------------------------|