Quick tip: Create random Word documents of specified length

Have you ever found yourself in a position needing a document file to use in order to test an application?

It’s one of those things that happen more often than not. What do you do then? I will normally start up Microsoft Word, type in some rubbish (or, even copy random stuff from whatever webpage I happen to have displayed in my browser), save the file and use it.

What if there was a much easier way to create a random document file?

The following will work for you:


Type the above in a new word document, replacing integers for “x” and “y” and press enter. Word will generate random text of “x” paragraphs of “y” sentences length. For example, if you wanted to create a 10 paragraph document, where each paragraph is made of 2 sentences, you would type in the following:


MGR: the Intelogist

About MGR: the Intelogist

SharePoint Server developer, turned Sitefinity developer, turned Angular developer, turned SharePoint Online consultant, turned Unily consultant, turned O365 consultant... Never a dull moment!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

This site uses Akismet to reduce spam. Learn how your comment data is processed.