Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Last active September 14, 2015 17:28
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/d892c4505bf32e99b14b to your computer and use it in GitHub Desktop.
Save jmaciasluque/d892c4505bf32e99b14b to your computer and use it in GitHub Desktop.
def createList(listSize: Int): List[String] = {
Seq.fill[Int](listSize)(Random.nextInt(sourceWords.length))
.map(sourceWords(_))
.toList
}
def allWords: List[String] = {
sourceWords.toList
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment