unity system random range 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: how to generate random number in unity
X = Random.Range(min, max);
// To get a random float between two values:
float number = Random.Range(0.0f, 3.0f);
X = Random.Range(min, max);