Generator ¶
properties¶
BitGenerator : () -> number
The bit generator thats used to generate random numbers.
type : "Generator"
The type of the object, this being "Generator"
methods¶
random -> () ¶
Generates a ndArray of random values between 0 - 1.
integers -> () ¶
Generates a ndArray of random integers between min - max.
choice -> () ¶
Generates a ndArray of random values from a target array.
normal -> () ¶
Generates a ndArray of random values sampled from a normal distribution, defined by a mean and standard deviation.
lognormal -> () ¶
Generates a ndArray of random values sampled from a lognormal distribution, defined by a mean and standard deviation.
exponential -> () ¶
Generates a ndArray of random values sampled from a exponential distribution thats scaled.
gamma -> () ¶
Generates a ndArray of random values sampled from a gamma distribution, defined by ɑ and scale.
beta -> () ¶
Generates a ndArray of random values sampled from a gamma distribution, defined by ɑ and β.
uniform -> () ¶
Generates a ndArray of random values sampled from a uniform distribution between min - max.
poisson -> () ¶
Generates a ndArray of random values sampled from a poisson distribution defined by λ. with λ representing rate
binomial -> () ¶
Generates a ndArray of random values sampled from a binomial distribution defined by a trial number and probability.
shuffle -> () ¶
Performs a inplace shuffle on a target ndArray across an axis.
permutation -> () ¶
returns a result of shuffle on a clone of the target ndArray across an axis.