This is an old version, view current version.
11.6 Pseudorandom number generators
For most of the probability functions, there is a matching
pseudorandom number generator (PRNG) with the suffix _rng
. For
example, the function normal_rng(real, real)
accepts two real
arguments, an unconstrained location μ and positive scale σ>0, and returns an unconstrained pseudorandom value drawn from
Normal(μ,σ). There are also vectorized forms of
random number generators which return more than one random variate at
a time.