MATLAB: Random complete and in complete numbers

range of random numbers

I have tried using Randi function,but it only gives me complete numbers.also tried rand but it doesn't give me to choose a specific range. Is there a function in matlab that would give me both complete and incomplete numbers in a specific range?I need to put this numbers in a matrix

Best Answer

To randomize uniformly over an interval [lower, upper], you would do,
out=rand(___)*(upper-lower)+lower