Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 15, 2015 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmaciasluque/64774265b606d2e9303f to your computer and use it in GitHub Desktop.
Save jmaciasluque/64774265b606d2e9303f to your computer and use it in GitHub Desktop.
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