randExp

Syntax

randExp(mean, count)

Arguments

mean is the mean of an exponential distribution.

count is the number of random values to be generated.

Details

Return a vector of random values with exponential distribution.

Examples

randExp(2.31, 2);
// output
[0.732791, 0.732791]