Commodore VIC-20 Programmer's Reference Manual page 63

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

I
RIGHT$
Format:
Abbreviation:
Screen Display:
RIGHTS(XS, I)
Action: Returns the rightmost I characters of siring X$, Jf
f = LEN(XS)h returns X$. If 1 = 0, the null string (fength zero) is
returned.
EXAMPLE:
10 AS-"COMMODORE BUSINESS MACHINES"
20 PRINT RIGHT$(ASr 8)
RUN
MACHINES
READY.
Also see the MID$ and LEFTS functions.
RND
Format:
Abbreviation:
Screen Display:
RND(X)
pIBIBBn
R0
Action: Returns a random number between 0 and 1. X>0 returns
the same pseudo-random number sequence for any random
number seed. X<0 reseeds the sequence, each X producing a
different seed. The sequence is seeded at random on power-up.
X=0 generates a random number from a free running clock.
EXAMPLE:
10 FOR 1 = 1 TO 5
20 PRINT INT(RND(X)*100);
30 NEXT
RUN
24
30
31
51
5
READY,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents