Answers for "how to randomly select an enum java"

-1

get random number from enum in java

return Letter.values()[new Random().nextInt(Letter.values().length)];
Posted by: Guest on May-03-2020

Code answers related to "how to randomly select an enum java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language