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