random range int unity code example
Example 1: unity random int
//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);
}
Example 2: random.range unity
// returns 0 - 9
Random.Range(0, 10)
Example 3: unity random range
Random.Range(-10.0f, 10.0f);