return random from enum

C#
//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);
Source

Also in C#: