osglworks / java-tool

Some simple common Java utilities
Apache License 2.0
52 stars 18 forks source link

Create a method to pick up random elements in an existing list #128

Closed greenlaw110 closed 6 years ago

greenlaw110 commented 6 years ago

Proposed API:

public static <T> List<T> randomSubList(List<T> list);
public static <T> List<T> randomSubList(List<T> list, int minSize);