# MATLAB: How do you generate random numbers (integers) from zero to five

beginner

R = randperm(6)-1
R =       5     2     3     1     0     4