c# random unity code example
Example 1: random in unity
// random int
int num = Random.Range(min/*int*/, max/*int*/);
// random float
float num2 = Random.Range(min/*float*/, max/*float*/);
Example 2: unity random
var RandomValue = UnityEngine.Random.Range(min,max);
Example 3: unity C# random number
public int number;
number = Random.Range(min, max);
Example 4: unity random range
Random.Range(-10.0f, 10.0f);