Contents

# Random numbers

You can create vectors and matricies with random numbers using the major distributions. Look at the package [http:/jwork.org//jmathlab/doc/ random_numbers] for the description of various random-number generators.

For example, let us create a vector and a matrix with the random numbers distributed in accordance with a Poisson distribution (assuming the mean 2):

v=poisson_rnd(2,10)   % create vector with 10 elements
m=poisson_rnd(2,10,3) % create matrix 10x3
printf('%f',m)        % print

Learn how to graph these random numbers using histograms ("density plots") in the next section.