Answers for "java random choice from list"

4

select a random element from a list java

Random randomizer = new Random();
String random = list.get(randomizer.nextInt(list.size()));
Posted by: Guest on March-30-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language