HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 115
The RAD statement indicates that angular units will be specified in
Radians. This is the default.
A Radian is 1/(2*PI) of a circle. This statement is used with
trigonometric functions.
Syntax
RAD
Example
10 Radius=10
20 RAD
30 Area=PI*Radius**2
40 PRINT Area
RANDOMIZE
The RANDOMIZE statement resets the value of a seed that the RND function
uses for random number generation. The seed is set to one of 116 values
that are available to it.
Syntax
RANDOMIZE [
n
]
Parameters
n
An optional parameter specifying a value for the seed.
Examples
10 RANDOMIZE !A random seed value.
20 RANDOMIZE 1.793 !The seed is 1.793.
READ
The READ statement assigns data from one or more DATA statements to
specified variables. It also assigns the value of one or more data items
in a file to one or more variables.
Syntax
{
variable
}{ [
variable
]}
READ {
read_for_loop
}{,[
read_for_loop
]} READ
#fnum
[,
rnum
[,
wnum
]]
[;
input_list
]
Parameters
variable
Variable reference; that is, a variable name, array
reference (one element or an entire array), or substring
reference (see "Referencing Variables" in chapter 3 for
syntax).
read_for_loop
A FOR loop within a READ statement used to assign
individual datum to variables. See below for syntax and
an explanation.
fnum
The file number that HP Business BASIC/XL uses to
identify the file. It is a numeric expression that
evaluates to a positive short integer.
rnum
Record number, a numeric expression. If a file I/O
statement specifies
rnum
, it is direct; otherwise, it is
sequential