Answers for "get n random elements from list java"

0

get n random elements from list java

List<Foo> list = createItSomehow();
Collections.shuffle(list);
Foo foo = list.get(0);
Posted by: Guest on August-20-2020

Code answers related to "get n random elements from list java"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language