If the list contains a single number nelements, the result is an n-element vector. If the list contains two numbers nrows and mcols, the result is an n × m matrix.

Elements taken from the argument vector or matrix preserve the same row order in the resulting vector or matrix. If the result is dimensioned to contain fewer elements than the argument vector or matrix, excess elements from the argument vector or matrix at the end of the row order are discarded. If the result is dimensioned to contain more elements than the argument vector or matrix, the additional elements in the result at the end of the row order are filled with zeros.

If the argument vector or matrix is specified by global, the result replaces the argument as the contents of the variable.

Access:

CREATE LLRDM

( Ø is the left-shift of the 5key).

 

 

MATRIX MAKE RDM

( ´is the left-shift of the Pkey).

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

 

 

 

 

[ vector ]1

 

{ nelements

}

 

[ vector ]2

 

 

 

[ vector ]

 

{ n , m

cols

}

[[ matrix ]]

 

 

 

 

rows

 

 

 

 

 

[[ matrix ]]

{ nelements

}

 

[ vector ]

 

 

 

[[ matrix ]]

1

{ n , m

cols

}

[[ matrix ]]

2

 

 

 

rows

 

 

 

 

'global'

 

{ nelements

}

 

 

 

 

 

'global'

 

{ n , m

cols

}

 

 

 

 

 

 

rows

 

 

 

 

[ 2 4 6

 

 

Example 1:

8 ] { 2 2 } RDM returns [[ 2 4 ][ 6 8 ]].

 

Example 2:

[[ 2 3 4][ 1 6 9 ]] 8 RDM returns [ 2 3 4 1 6 9 0 0 ].

See also:

TRN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RDZ

Command

 

 

 

 

 

 

 

Type:

 

 

 

 

 

 

 

Description:

Randomize Command: Uses a real number xseed as a seed for the RAND command.

 

If the argument is 0, a random value based on the system clock is used as the seed.

 

Access:

!´LPROBABILITY RDZ

 

 

( ´is the left-shift of the Pkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 1/Argument 1

 

 

 

Level 1/Item 1

 

 

 

 

 

 

 

 

 

 

 

 

xseed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

See also:

COMB, PERM, RAND, !

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RE

Function

 

 

 

 

 

 

 

Type:

 

 

 

 

 

 

 

Description:

Real Part Function: Returns the real part of the argument.

 

 

 

If the argument is a vector or matrix, RE returns a real array, the elements of which are equal to

 

the real parts of the corresponding elements of the argument array.

 

 

Access:

…ßLRE

 

 

 

(ßis the right-shift of the 1key).

Flags:

Numerical Results (–3)

 

 

 

 

 

 

 

3-196 Full Command and Function Reference