Check out example codes for "return random from enum". It will help you in understanding the concepts better.
Code Example 1
//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);
Learn ReactJs, React Native from akashmittal.com