Check out example codes for "c# random number between 0 and 1". It will help you in understanding the concepts better.

Code Example 1

Random rand = new Random();
return rand.NextDouble; //returns a random number bw 0.0 and 1.0!

Learn ReactJs, React Native from akashmittal.com