A83: Re: Random number...


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

A83: Re: Random number...




if you use the zlib random routine its easy...

    ld    b,41
    call    vector0        ;whatever vec the random bit is assigned to
    add    a,10

there you have a with a # 10-50...

-Dan
----- Original Message -----
From: yean yean <yhean@mailcity.com>
To: <assembly-83@lists.ticalc.org>
Sent: Saturday, November 28, 1998 3:10 PM
Subject: A83: Random number...


>
>Hi,
>
>I'm sure it's very simple... :), but I ask.
>Is there a way to do in assembly like in basic : 10+rand*41  ????
>That thing will display a number between 10 and 50, I want to do like this,
but in asm.
>Is it possible ?
>
>THX  ;)
>
>see ya,
>'yhean
>
>
>
>Get your FREE Email at http://mailcity.lycos.com
>Get your PERSONALIZED START PAGE at http://personal.lycos.com