unity random random work gen code example
Example 1: random number generator unity
int num = Random.Range(min, max);
Example 2: unity random
var RandomValue = UnityEngine.Random.Range(min,max);
int num = Random.Range(min, max);
var RandomValue = UnityEngine.Random.Range(min,max);