luke
0
Q:

get n random elements from list java

List<Foo> list = createItSomehow();
Collections.shuffle(list);
Foo foo = list.get(0);
0

New to Communities?

Join the community