unity Random.Range(0f, 1f) code example Example: random number generator unity int num = Random.Range(min, max);