Check out example codes for "tsql random number". It will help you in understanding the concepts better.

Code Example 1

SELECT FLOOR(RAND()*(b-a+1))+a;

Learn ReactJs, React Native from akashmittal.com