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