tuple_randtuple_randTupleRandTupleRandtuple_rand (算子)

名称

tuple_randtuple_randTupleRandTupleRandtuple_rand — 返回一个介于 0 和 1 之间的随机数元组。

签名

tuple_rand( : : Length : Rand)

Herror tuple_rand(const Hlong Length, double* Rand)

Herror T_tuple_rand(const Htuple Length, Htuple* Rand)

void TupleRand(const HTuple& Length, HTuple* Rand)

static HTuple HTuple::TupleRand(const HTuple& Length)

static void HOperatorSet.TupleRand(HTuple length, out HTuple rand)

static HTuple HTuple.TupleRand(HTuple length)

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 内联操作

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)

执行信息

参数

LengthLengthLengthLengthlengthlength (输入控制)  number HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Length of tuple to generate.

RandRandRandRandrandrand (输出控制)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Tuple of random numbers.

另见

tuple_gen_consttuple_gen_constTupleGenConstTupleGenConstTupleGenConsttuple_gen_const

模块

基础