EasyManua.ls Logo

Laser 128 - Rnd

Laser 128
255 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.11
RND
Purpose:
Format:
BASIC
FUNCTIONS
To
return
a
random
number
between
0
and
1.
RND
(x)
Comments:
The
value
of
the
dumm
y
Example:
argument,
x,
determines
how
the
random
numbers
are
generated
.
If
x
is
greater
than
zero
then
RND
(x)
gener
ates a new
random
number
everytime
it
is
used.
If
x
is
less
than
z
ero,
th
en
RND
(x)
generates
the
same
random
number
everytime
it
is
used
with
the
same
argument.
] I 0
FOR
I = 1
TO
8
] 30
PRINT
INT(RND(
I)
* 1000)
] 50
NEXT
]
RUN
797
584
268
397
31
932
]
11-116

Table of Contents