Skip to Content

[Solved] How to Create Sample Random Text Document with Microsoft Word 2007 and Above

Do you ever need to create a 20 page Word document for some testing purposes? Are you tired of copying & pasting old boring lorem ipsum text over and over again, increasing the font size and line space to make the document 20+ pages long? This article will show you a small trick in Microsoft Word 2007 and above to create a large test document with random text in less than 5 seconds.

[Solved] How to Create Sample Random Text Document with Microsoft Word 2007 and Above

[Solved] How to Create Sample Random Text Document with Microsoft Word 2007 and Above


Content Summary

Insert lorem Ipsum Text
Insert Random Readable Text

Insert lorem Ipsum Text

Step 1: Open Microsoft Word 2007 or above.
Step 2: Type =lorem(m,n), substituting m and n with numbers in a new line. For example, =lorem(50,35)
Step 3: Press Enter.

Microsoft Word automatically inserts random lorem Ipsum text in the Word document. The meaning of the parameters in the lorem() function is:

  • m: The number of paragraphs created.
  • n: The number of sentences in each paragraph.

So the above example will insert 50 paragraphs of lorem Ipsum text with 35 sentences in each paragraph.

Insert Random Readable Text

Step 1: Launch Microsoft Word 2007 or above.
Step 2: Type =rand(m, n), substituting m and n with numbers in a new line. For example, =rand(30,25).
Step 3: Press Enter.

Microsoft Word automatically inserts random readable text in the document. The parameters in rand()” function has the same meaning as in lorem() function, so the above example will insert 30 paragraphs of random text in the document with 25 sentences in each paragraph.

You can use both rand() and lorem() functions at any place at any time when you need to insert some random text to fill up some space in a new or existing Word document, and also by using large numbers for m and n, you can create a large test document with thousands of pages in no time.

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.