unity3d random code example Example: unity random var RandomValue = UnityEngine.Random.Range(min,max);