Created
August 15, 2015 11:50
-
-
Save jmaciasluque/64774265b606d2e9303f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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