public List<String> createList(int listSize) { | |
return | |
new Random() | |
.ints(listSize, 0, sourceWords.size()) | |
.mapToObj(sourceWords::get) | |
.collect(Collectors.toList()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment