List of utility methods to do Random Element
String | randomElementOf(String[] array) random Element Of int size = array.length; return array[random(size)]; |
List | randomEles(List random Eles final List<T> result = new ArrayList<T>(count); int limit = list.size(); while (--count > 0) { result.add(randomEle(list, limit)); return result; |