get random number from enum in java

Solutions on MaxInterview for get random number from enum in java by the best coders in the world

showing results for - "get random number from enum in java"
Domenico
02 Jan 2020
1return Letter.values()[new Random().nextInt(Letter.values().length)];