MATLAB: Random numbers in between two ranges

MATLAB

hi
i want one random number generated between two ranges Like 20 and 50. i there any command who can do this. kindly help me
regards

Best Answer

a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)