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

Code Example 1

//Notice that I think in order to use System.Random you need to import System (using System;)

static float NextFloat(float min, float max){
  System.Random random = new System.Random();
  double val = (random.NextDouble() * (max - min) + min);
  return (float)val;
}

Learn ReactJs, React Native from akashmittal.com