Randomize generated text
aaronneilwood opened this issue · comments
aaronneilwood commented
Great work! Is it possible to randomize the text that is generated?
Till Krüss commented
What exact command are you using that isn't random?
aaronneilwood commented
Thanks for the reply:
For example, ‘lorem word 1’ will always return ‘Lorem.’ ‘lorem word 3’ will always return ‘Lorem ipsum dolor.'
I’d love for a way to grab a different word/sentence/paragraph every time the command is run. Thoughts?
- Aaron
On Thu, Jan 12, 2017 at 11:15 AM "Till Krüss" < mailto: > wrote:
a, pre, code, a:link, body { word-wrap: break-word !important; }
What exact command are you using that isn't random?
—
You are receiving this because you authored the thread.
Reply to this email directly,
#1 (comment)
, or
https://github.com/notifications/unsubscribe-auth/AAvDx9hKxOzy-UVeh4yzoXu9496qtIe7ks5rRl_IgaJpZM4Lhn35
.
Till Krüss commented
It's only for words
right?
aaronneilwood commented
Words would be the most useful thing to have randomized, followed by sentences, then paragraphs.
On Thu, Jan 12, 2017 at 11:25 AM "Till Krüss" < mailto: > wrote:
a, pre, code, a:link, body { word-wrap: break-word !important; }
It's only for
words
right?
—
You are receiving this because you authored the thread.
Reply to this email directly,
#1 (comment)
, or
https://github.com/notifications/unsubscribe-auth/AAvDx9ovJlLzhxy7WrLUQKcqWOBeh3rTks5rRmIAgaJpZM4Lhn35
.
Till Krüss commented
That would mean we never have "Lorem ipsum..." at the beginning and it's always randomized.
You can add $lipsum->word(1);
before line 33 to make that happen. Let me know how that's going in a week.
aaronneilwood commented
Works perfectly! Really appreciate your time. The randomization is great for design mockups so the placeholder content looks a little more natural. Huge time saver, and the best lorem ipsum plugin I’ve seen. Nice work!
- Aaron
Till Krüss commented
Fixed in v0.2.0.