unity random or system random code example
Example 1: unity random number
Random.Range(-10.0f, 10.0f);
Example 2: random in unity
// random int
int num = Random.Range(min/*int*/, max/*int*/);
// random float
float num2 = Random.Range(min/*float*/, max/*float*/);