Choose a random enum code example
Example: return random from enum
//Return a random int number between min [inclusive] and max [inclusive]
//Make sure maxNumber does not exceed number of enum values
(EnumType)Random.Range(minNumber, maxNumer);
//Return a random int number between min [inclusive] and max [inclusive]
//Make sure maxNumber does not exceed number of enum values
(EnumType)Random.Range(minNumber, maxNumer);