Random Numbers - Hertzole/HertzLib GitHub Wiki

Random Numbers

Random numbers consist of two structs, RandomFloat and RandomInt. They take in a minimum value and a maximum value and every time you use them, they will give you a random number.

Example Usage:

private RandomInt randomInt = new RandomInt(0, 10);

private void Start()
{
	if(randomInt == 3)
		Debug.Log("Random int is 3");
}

Here's how they look in the inspector.

Random numbers