Operator Reference
tuple_rand (Operator)
tuple_rand — Return a tuple of random numbers between 0 and 1.
Signature
Description
tuple_rand returns a tuple of random numbers distributed
uniformly in the interval [0,1). The parameter Length
specifies the length of the output tuple, i.e., how many random
numbers are generated.
The random numbers are generated using the C function “drand48()”.
See the parameter 'seed_rand' of set_system for
information on the used random seed.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_rand,
which can be used in an expression in the following syntax:
Rand := rand(Length)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
Length (input_control) number → (integer)
Length of tuple to generate.
Rand (output_control) number(-array) → (real)
Tuple of random numbers.
See also
Module
Foundation