tuple_randtuple_randTupleRandTupleRandtuple_rand (算子名称)
名称
tuple_randtuple_randTupleRandTupleRandtuple_rand — Return a tuple of random numbers between 0 and 1.
参数签名
Herror tuple_rand(const Hlong Length, double* Rand)
Herror T_tuple_rand(const Htuple Length, Htuple* Rand)
def tuple_rand(length: int) -> Sequence[float]
def tuple_rand_s(length: int) -> float
描述
tuple_randtuple_randTupleRandTupleRandTupleRandtuple_rand returns a tuple of random numbers distributed
uniformly in the interval [0,1). The parameter LengthLengthLengthLengthlengthlength
specifies the length of the output tuple, i.e., how many random
numbers are generated.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_randtuple_randTupleRandTupleRandTupleRandtuple_rand,
which can be used in an expression in the following syntax:
Rand := rand(Length)
运行信息
- Multithreading type: independent (runs in parallel even with exclusive operators).
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
LengthLengthLengthLengthlengthlength (input_control) number → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Length of tuple to generate.
RandRandRandRandrandrand (output_control) number(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Tuple of random numbers.
参考其它
tuple_gen_consttuple_gen_constTupleGenConstTupleGenConstTupleGenConsttuple_gen_const
模块
Foundation