Navigation

Operators and Keywords

Function List:

C++ API

Built-in Function: rande (n)
Built-in Function: rande (m, n, …)
Built-in Function: rande ([m n …])
Built-in Function: v = rande ("state")
Built-in Function: rande ("state", v)
Built-in Function: rande ("state", "reset")
Built-in Function: v = rande ("seed")
Built-in Function: rande ("seed", v)
Built-in Function: rande ("seed", "reset")
Built-in Function: rande (…, "single")
Built-in Function: rande (…, "double")

Return a matrix with exponentially distributed random elements.

The arguments are handled the same as the arguments for rand.

By default, randn uses the Marsaglia and Tsang “Ziggurat technique” to transform from a uniform to a normal distribution.

The class of the value returned can be controlled by a trailing "double" or "single" argument. These are the only valid classes.

Reference: G. Marsaglia and W.W. Tsang, Ziggurat Method for Generating Random Variables, J. Statistical Software, vol 5, 2000, http://www.jstatsoft.org/v05/i08/

See also: rand, randn, randg, randp.

Package: octave