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

Code Example 1

// To get a random float between two values:
 float number = Random.Range(0.0f, 3.0f);

Code Example 2

X = Random.rnge(min, max)
  // Only works in C# Jireh Roberts

Learn ReactJs, React Native from akashmittal.com