Rad; Randomize; Read - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

RAD
RAD
RAD
COMMAND: Sets RADians mode of calculation. BASIC defaults to radians when the
computer is switched on or reset, or when the commands NEW, CLEAR, or LOAD,
RUN, etc, are issued.
Associated keywords: AT N, COS, D E G, SIN, TAN
RANDOMIZE
RAN DO
M
I Z E [<numeric expression>]
RANDOMIZE 123.456
PRINT RND
0.258852139
COMMAND: Randomizes the number 'seed' specified in the <numeric expression>.
BASIC's random number generator produces a pseudo-random sequence in which
each number depends on the previous number, commencing at a given number seed.
The sequence is always the same. RAN DO
M
I Z E sets the new initial value for the
random number generator either to the specified value, or to a value entered by the
user if the <numeric expression> is omitted.
RAN DO
M
I Z E T I
M
E produces a sequence that is difficult to repeat.
Associated keywords: RN D
READ
REA D <listof:<variable>
10 FOR n=1 TO 8
20 READ a$,c
30 PRINT a$;" ";:SOUND 1,c:NEXT
40 DATA here,478,are,426,8,379,notes
50 DATA 358,of,319,a,284,musicaL,253,scaLe,239
run
COMMAND: Reads data from D A T A statements and assigns it to variables,
automatically stepping the 'pointer' to the next item in the D A T A statement
afterwards. The RES TOR E command can be used to return the pointer to the
beginning of a D A T A statement.
Further information concerning data will
he
found in part 2 of the chapter entitled
'At your leisure .... '.
Associated keywords: D A TA, RES TOR E
Chapter 3 Page 64
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents

Save PDF