Answers for "java get random item of 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 get random item of list"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language