Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:13
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 dacr/af64aff158cee6e97e2201aab696a848 to your computer and use it in GitHub Desktop.
Save dacr/af64aff158cee6e97e2201aab696a848 to your computer and use it in GitHub Desktop.
lorem ipsum generator / published by https://github.com/dacr/code-examples-manager #2ae6a463-3266-49e5-ac47-a167ce3faddd/34e6764ccecb14b3c289fed8f6ee7bbae2ec0b24
// summary : lorem ipsum generator
// keywords : scala, loremipsum
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 2ae6a463-3266-49e5-ac47-a167ce3faddd
// created-on : 2020-03-27T21:29:05Z
// managed-by : https://github.com/dacr/code-examples-manager
// execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'
import $ivy.`fr.janalyse::lorem-ipsum:1.0.4`
import loremipsum._
val story = LoremIpsum.generate(wordCount = 242, alwaysStartWithLorem = true, truncate = false, sentencesBased=true, randomize=true)
println(story.map(_.text).mkString("\n\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment