Radio Shack TRS-80 PC-3 Owner's Manual page 180

Table of Contents

Advertisement

LN is a numeric function which retuns the logarithm to the base e (2.718281828) of its numeric argument.
LN 100 is
4.6(J517(J186.
1 RND numeric expression
R N D is a numeric function wh ich generates random numbers. If the value of the argument is less than one but greater than or equal
to zero, the random number is less than one and greater than or equal to zero. If the argument is an integer greater than or equal
to 1, the result is a random number greater than or equal to 1 and less than or equal to the argument. If the argument is greater
than 1 and not an integer, the result is a random number greater than or equal to 1 and less than or equal to the smallest integer
which is larger than the argument:
Result
Argument
.5
2
2.5
Lower Bound
o
1
1
Upper Bound
<1
2
3
The same sequence of random numbers is normally generated because the same "seed" is used each time the PC-3 Pocket Com-
puter is turned on. To randomize the seed, see the RANDOM verb.
180

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents