Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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