EasyManua.ls Logo

Sharp PC-1403 - Page 172

Sharp PC-1403
252 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...
1
66
W
h
en
ru
n
f
rom
li
n
e
20
,
the
va
l
ue
of X
i
s based on the standard
see
d.
Wh
en
r
un
f
r
om
l
in
e
10
,
a
ne
w seed
i
s
u
sed.
10 RANDOM
20 X=RND 10
Examples
1
Mi
When random
num
b
ers
ar
e
g
ene
r
ate
d
u
s
in
g th
e
RND
f
un
c
t
i
on
,
t
h
e COMPUTER
b
eg
in
s with a
pr
ed
eter
m
i
ned
"
s
eed"
o
r s
tart
i
ng nu
mber
.
T
h
e
R
ANDOM verb
r
e
se
t
s
t
h
i
s seed to a new
ran
d
omly
de
t
er
mined v
alue
.
The starting seed
w
i
ll
b
e the same
eac
h
t
ime
t
he
COMPUTER
i
s
t
urn
ed
o
n,
so the
sequenc
e
o
f random
numb
ers
g
e
nera
te
d
w
ith
RND
i
s
t
he same
ea
c
h
time,
u
n
le
ss the
seed
i
s
cha
n
ged.
T
hi
s is
ve
ry
co
n
v
en
ie
nt
d
ur
i
ng
t
he
de
v
el
op
me
nt of a program
becaus
e
i
t
me
a
ns that the
be
havior of the
pro
gram
sho
u
l
d
be the s
a
me
e
a
c
h
t
ime it is
run, even
th
o
ugh
i
t
i
n
cl
ude
s an RND
f
u
n
c
t
i
o
n
.
Wh
en
y
ou
want
to
hav
e
t
he
nu
mbers be
truly
random
,
th
e
RA
N
DOM
statemen
t c
a
n
b
e
use
d
to make
t
he s
e
ed
i
tsel
f random.
•M•H.t.Mi
The RANDOM v
e
rb is
u
sed
t
o reset
t
he
see
d for r
and
o
m
number
g
ene
r
a
ti
on
.
1
RANDOM
Abbrev
ia
ti
ons
:
RA.
,
RA
N.,
R
AN
D
.
,
R
A
ND
O
.
Verbs
RANDOM

Related product manuals