EasyManuals Logo

Atari 65XE User Manual

Atari 65XE
135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #55 background imageLoading...
Page #55 background image
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 key. To make changes in
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.
50
Order of Mathematical Execution
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
1.
2.
3.
4.
( )
^
*
/
+

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 65XE and is the answer not in the manual?

Atari 65XE Specifications

General IconGeneral
CPUMOS Technology 6502C
CPU Speed1.79 MHz (NTSC) / 1.77 MHz (PAL)
RAM64 KB
ROM16 KB
Release Year1985
GraphicsANTIC and GTIA
Display Resolution320x192
SoundPOKEY sound chip, 4 channels
Operating SystemAtari BASIC
PortsJoystick, Cartridge
StorageExternal 5.25" floppy disk drive

Related product manuals