set random number inn unity code example
Example 1: how to generate random number in unity
X = Random.Range(min, max);
Example 2: unity C# random number
public int number;
number = Random.Range(min, max);
X = Random.Range(min, max);
public int number;
number = Random.Range(min, max);