| 19 | } |
| 20 | |
| 21 | export function getRandomSentence() { |
| 22 | return loremIpsum({ |
| 23 | count: 1, // Number of "words", "sentences", or "paragraphs" |
| 24 | format: 'plain', // "plain" or "html" |
| 25 | paragraphLowerBound: 3, // Min. number of sentences per paragraph. |
| 26 | paragraphUpperBound: 7, // Max. number of sentences per paragraph. |
| 27 | random: Math.random, // A PRNG function |
| 28 | sentenceLowerBound: 5, // Min. number of words per sentence. |
| 29 | sentenceUpperBound: 15, // Max. number of words per sentence. |
| 30 | suffix: '\n', // Line ending, defaults to "\n" or "\r\n" (win32) |
| 31 | units: 'sentences', // paragraph(s), "sentence(s)", or "word(s)" |
| 32 | }); |
| 33 | } |
| 34 | export function getRandomName() { |
| 35 | return loremIpsum({ |
| 36 | count: 4, // Number of "words", "sentences", or "paragraphs" |