trait
RandomStateTrait (View source)
Random generator methods.
It provides legacy numpy methods.
Methods
randn()
Return a sample (or samples) from the “standard normal”
distribution.
rand()
Random values in a given shape.
randint(int $low, int|null $high = null, int|int[] $size = null)
Return random integers from low (inclusive) to high (exclusive).
Details
Return a sample (or samples) from the “standard normal”
distribution.
Random values in a given shape.
final NdArray|int
randint(int $low, int|null $high = null, int|int[] $size = null)
Return random integers from low (inclusive) to high (exclusive).