Check out example codes for "unity randomly generated numbers c#". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

X = Random.range(min, max)
// Only Works In C#

Learn ReactJs, React Native from akashmittal.com