MATLAB: How to generate a random numbers with increase in percentage

random number generator

I need to generate a uniform random speed with minimum speed 10 m/s and maximum 40 m/s. For that I'm using :
rand_speed(step) = min_speed+rand*(max_speed-min_speed);
What I'm asking for is to generate the next random speed with 10 percent increase from the previous speed assigned.
Is there any MATLAB function that generates random speed with this constraint.

Best Answer

Then do
next_speed = 1.1*rand_speed