A82: random numbers


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

A82: random numbers



I tried to write my own random number routine, which looked like this:

ld a,r
srl a
and 10
ROM_CALL(TR_CHARPUT)

like it says in Zshell School.

This would only give me four randomized things, and they were a filled in box, an empty box, some sort of math symbol, and the checkerboard box.

I then tried to use rand.asm, but it locked up my calculator.  I first tried the CALL_ thing, like rand.asm said to use, and the compiler didn't even let me use it.  Then I tried "call" and "jp", which locked up my calculator.

How do I get a random number ?!?!?!?!?!?!?!?!?!


Follow-Ups: