Answers for "return random from enum"

C#
0

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);
Posted by: Guest on June-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language