Click or drag to resize

RandomizerGenerateLoremIpsum Method

Generates a random lorem ipsum text

Namespace:  Cauldron
Assembly:  Cauldron.Randomizer (in Cauldron.Randomizer.dll) Version: 3.2.0.2
Syntax
public static string GenerateLoremIpsum(
	int minWords,
	int maxWords,
	int minSentences = 1,
	int maxSentences = 1,
	uint paragraphCount = 1
)

Parameters

minWords
Type: SystemInt32
The minimum word count to generate
maxWords
Type: SystemInt32
The maximum word count to generate
minSentences (Optional)
Type: SystemInt32
The minimum sentence count to generate
maxSentences (Optional)
Type: SystemInt32
The maximum sentence count to generate
paragraphCount (Optional)
Type: SystemUInt32
The number of paragraphs to generate

Return Value

Type: String
The generated lorem ipsum text
Exceptions
ExceptionCondition
ArgumentExceptionminWords is 0
ArgumentExceptionminSentences is 0
ArgumentExceptionparagraphCount is 0
ArgumentExceptionminWords is greater than maxWords
ArgumentExceptionminSentences is greater than maxSentences
See Also