Re: A89: Random number help
[Prev][Next][Index][Thread]
Re: A89: Random number help
In a message dated 4/10/99 4:41:28 PM Eastern Daylight Time,
bentensai@yahoo.com writes:
<< You can userlib::random
Here is an example.
you can write your question before this and this will
send you randomly to an answer.
move.w #14,d0 ;uperlimit of random number
jsr userlib::random :put's a random number 0<x<14
in d0.
cmp.w #0,d0 ; 0 is lowest number that can be gotten
beq answer1 ; branches to answer one.
cmp.w #1,d0 ; check to see if one
beq answer2 ; goes to answer two.
And so on until it is 14. I hope this helps >>
yeah thanks. i got it. makes sence too.