Check out example codes for "unity get random enum value". It will help you in understanding the concepts better.

Code Example 1

public enum CardSuit {     Spades,     Hearts,     Diamonds,     Clubs }  void Start () {     cardSuit = (CardSuit)Random.Range(0, 3);     // or     // cardSuit = (CardSuit)Enum.ToObject(typeof(CardSuit) , Random.Range(0, 3)); }

Learn ReactJs, React Native from akashmittal.com