How to use Randi command in Matlab?
The randi function returns double integer values drawn from a discrete uniform distribution. For example, r2 = randi(10,1000,1); r2 is a 1000-by-1 column vector containing integer values drawn from a discrete uniform distribution whose range is in the close interval [1, 10].