random in c# unity code example
Example 1: random number generator unity
int num = Random.Range(min, max);
Example 2: random in unity
// random int
int num = Random.Range(min/*int*/, max/*int*/);
// random float
float num2 = Random.Range(min/*float*/, max/*float*/);
Example 3: how to generate random number in unity
X = Random.Range(min, max);