abstract class Decorator (View source)

Multiple inheritance for Random

Traits

Random generator methods.

Methods

NdArray|float
randn()

Return a sample (or samples) from the “standard normal” distribution.

rand()

Random values in a given shape.

NdArray|int
randint(int $low, int|null $high = null, int|int[] $size = null)

Return random integers from low (inclusive) to high (exclusive).

Details

final NdArray|float randn()

Return a sample (or samples) from the “standard normal” distribution.

Return Value

NdArray|float

final NdArray rand()

Random values in a given shape.

Return Value

NdArray

final NdArray|int randint(int $low, int|null $high = null, int|int[] $size = null)

Return random integers from low (inclusive) to high (exclusive).

Parameters

int $low
int|null $high
int|int[] $size Shape of the output matrix

Return Value

NdArray|int