How can I generate a random number in MATLAB between 13 and 20?
if you are looking to generate all the number within a specific rang randomly then you can try
r = randi([a b],1,d)
a = start point
a
b = end point
b
d = how many number you want to generate but keep in mind that d should be less than or equal to b-a
d
b-a