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

Code Example 1

Random.Range(-10.0f, 10.0f);

Code Example 2

//If you use Int in the Random.Range() then it will
	//return an Int
	public int RanTimerHigh = 10;
    public int RanTimerLow = 1;

    void Start()
    {
        int RandomInt = Random.Range(RanTimerLow, RanTimerHigh);
    }

Code Example 3

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

Code Example 4

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

Learn ReactJs, React Native from akashmittal.com