Atari 65XE Owner's Manual page 55

Hide thumbs Also See for 65XE:
Table of Contents

Advertisement

Order of Mathematical Execution
1.
( )
2.
^
*
3.
/
4.
+
RANDOM NUMBERS
The computer can perform other functions that your calculator most
likely cannot do. For example, your computer can pick random
numbers for you. Type the program below:
NEW
10 PRINT RND (0)
2O GOTO 10
RUN
RND is the command for generating random numbers. The infinite
loop in the program above will generate random numbers endlessly.
Remember to break the loop with the
the program, you can just list the program and use the cursor keys to
insert characters, rather than retype entire lines. Try out the various
programs below:
10 PRINT RND (1)
RUN
10 PRINT RND (123)
RUN
10 PRINT RND (50)
RUN
10 PRINT RND (50000)
RUN
All four variations of line 10 generate random numbers between 0 and
1. The decimal point is always before the first digit in a random number.
The few random numbers that have a number on the left side of the
decimal point are still between 0 and 1 but are so small that the com-
puter has written them in scientific notation.
Computations
in parentheses
Exponential
functions
Multiplication
Division
Addition
Subtraction
In order of appearance
from left to right
In order of appearance
from left to right
key. To make changes in
50

Advertisement

Table of Contents
loading

Table of Contents