[TOC]

exprnd

Pseudo-random number of an exponential distribution

Usages

exprnd(mu)

exprnd(mu,m)

exprnd(mu, s1, s2, ..., sn)

exprnd(mu, sizeVec)

Examples

Input
% Random inter-arrival times of a queue 
% with mean customer-arrival rate 
% equal to 3 people per minute.

% Mean inter-arrival time (minutes per customer)
mean_time = 1 / 3;
% 10 random interval-arrival times
r = exprnd(mean_time, 1, 10)
Output
r = 1e-1 × 
Columns 1 through 3:
 3.5380   0.3408   3.1718
Columns 4 through 6:
 8.4215   7.0371   0.3357
Columns 7 through 9:
 0.0515   0.7422   3.0326
Column 10:
 1.2894

Differences With MATLAB