random.range only gives same value unity code example
Example: unity random range int not working
float rand = UnityEngine.Random.Range(0, 4); Debug.Log(rand);
float rand = UnityEngine.Random.Range(0, 4); Debug.Log(rand);