Generate Lorem Ipsum Text

While adding features to my latest update of the Create-LabUsers tool, I wanted to provide a way to generate and send test email data to randomized recipients.  While generating a random list of recipients wasn't terribly hard, what did take a bit more work is generating random text.  Most of us are familiar with the Lorem Ipsum text blocks (pseudo-Latin-looking text used as a placeholder).

There are a few REST API services out there that let you query a web service endpoint to bring back data formatted as such, but as I wanted my tool to be able to run in an offline lab environment, I didn't think that would serve the purpose.  So, I set out to create one.

A brief look at the help:

 <#
.SYNOPSIS
LoremText is a text generator that can be used to create random text strings
formatted as paragraphs.

.DESCRIPTION
LoremText is a text generator that can be used to create random text strings
formatted as paragraphs.

.PARAMETER Paragraphs
Use this parameter to specify the overall number of paragraphs created. If no
parameter is specified, a random number between 2 and 9 will be selected.

.PARAMETER Sentences
Use this parameter to specify the overall number of sentences per paragraph. If
no paramter is specified, a random number between 1 and 9 will be selected.

.PARAMETER Words
Use this parameter to specify the overall number of words per sentence. If no
parameter is specified, a random number between 5 and 17 will be selected.
#>

And, a peek at it in action:

You can install the module by running Install-Module LoremText from an elevated PowerShell prompt.  Details are also available at https://www.powershellgallery.com/packages/LoremText/1.0.