P. 19
Random Number Generator
One of the most interesting functions of the TRS-80 is its
ability to generate random numbers. Try this:
10 X = RND (10)
20 PRINT X
30 GOTO 10
RUN it. Too much? BREAK the program and add:
5 FOR N = 1 to 10
Change line 30:
30 NEXT N
RUN it. Then add a comma at the end of line 20 and change the
number for N so you can fill up the screen. Then, use a semi-colon
and change N again to fill up the screen before the program ends.
Abbreviations
Most of the statements and commands can be abbreviated. This
simplifies programming. Look at the section LISTING OF RADIO
SHACK'S LEVEL I BASIC for all abbreviations, along with a
complete listing of commands and statements and functions.