how to get a random item from an enum java code example
Example 1: java choose random enum
return yourEnum.values()[new Random().nextInt(yourEnum.values().length)];
Example 2: get random number from enum in java
return Letter.values()[new Random().nextInt(Letter.values().length)];