Produce a random real number:
To produce a random real number in the range from low to high, at first create the variables low and high. And then, use the expression rand*(high-low) low. For illustration, the sequence
>> low = 3;
>> high = 5;
>> rand*(high-low)+low
would produce a random real number in the range from 3 to 5.