ramdom range unity code example
Example 1: unity random float
// To get a random float between two values:
float number = Random.Range(0.0f, 3.0f);
Example 2: unity random range
Random.Range(-10.0f, 10.0f);
// To get a random float between two values:
float number = Random.Range(0.0f, 3.0f);
Random.Range(-10.0f, 10.0f);