Section: Random Number Generation
randi
is
y = randi(low,high)
where low
and high
are arrays of integers. Scalars
can be used for one of the arguments. The output y
is
a uniformly distributed pseudo-random number between low
and high
(inclusive).
--> randi(zeros(1,6),5*ones(1,6)) ans = 1 0 4 1 5 0 --> quit