3.8.26. RANDOM

Interface to the REXX pseudorandom number generator. Returns a pseudorandom integer from <min_expression>> to <max_expression>, inclusive, and optionally re-seeds the generator with <seed_expression>, evaluated and rounded to an integer. Default values : <min_expression 0, <max_expression 100,000. One restriction is that the difference between the maximum and minimum limits must not exceed 100,000.

Syntax: Random(<min_expression>, <max_expression>, <seed_expression>)

3.8.27. ROOT1D

Finds a root of the given expression. Guess1 and guess2 must have opposite signs. Currently just a stub.

Syntax: Root1D(expression, unknown, guess1 guess2, min max)

3.8.28. ROUND

Rounds expression to the specified number of decimal places, or to the nearest integer. Numbers exactly halfway between steps are rounded up.

Syntax: Round(<expression>[, <places>])

3.8.29. SIGN

Signum function. Returns +1, 0, -1 for <expression> >0, =0, and <0. Syntax: Sign(<expression>)

3.8.30. SIN

Returns the sine of radian angle <expression>.

Syntax: sin(<expression>)

3.8.31. SQRT

Returns the square root of a non-negative number.

Syntax: Sqrt(<expression>)

3.8.32. TAN

Returns the tangent of radian angle <expression>.

Syntax: tan(<expression>)

3.8.33. TRUNC

Evaluate <expression> and truncate (round towards zero).

Syntax: trunc(<expression>)

47

Page 51
Image 51
IBM Release 1.93 manual Random, ROOT1D, Round, Sign, Sin, Sqrt, Tan, Trunc