[TIB] Re: rand (8XX)


[Prev][Index][Thread]

[TIB] Re: rand (8XX)



--- Aaron Fineman <amfineman@earthlink.net> wrote:
> this is for 8xx (z80) calculators, is their any way to use the 'rand'
> function to generate an integer between 0 and 94. using this for a snake
> game, no 'randint(' for the 82.

Just take the integer part of rand multiplied by 95.

For 86:
iPart (rand * 95)


=====
Bad language or abuse, I never, never use, whatever the emergency; Though "bother it" I may occasionally say, I never use a big, big D.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



References: