Skip to content

__randg__

builtin · libnexusinterp/corefcn/rand-proprietary.cc

: R = __randg__ (a)
: R = __randg__ (a, n, …)
: s = __randg__ ("state")

Gamma distributed pseudorandom numbers with shape a and unit scale.

a may be a scalar (with optional size arguments as for rand) or an array, in which case the result has the shape of a. Elements of a that are not positive and finite produce NaN.