Check out example codes for "random between two numbers matlab". It will help you in understanding the concepts better.

Code Example 1

a = 50;
b = 100;
r = (b-a).*rand(1000,1) + a;

Learn ReactJs, React Native from akashmittal.com