是否需要在Microsoft Word中添加一些随机或无意义的文本来测试文档、临时填充一些空间或查看某些格式的外观?幸运的是,Word提供了几种快速简便的方法,可以将随机文本输入到文档中。
随机文本
为此,请将光标置于空白段落的开头。键入以下内容并按Enter。使用小写、大写或混合大小写都没有关系。
=rand()
根据您的Word版本,您将获得一组默认段落,每个段落中的句子数量相同。在Word 2016中,我得到了 5 个段落,每个段落包含三个句子。所有的句子都是关于如何使用Word的有用提示。
在旧版本的Word中,它会为您提供由经典示例句子“The quick brown fox jumps over the lazy dog”组成的段落。如果您希望在较新版本的Word中使用该功能,只需使用 rand.old 函数。
=rand.old()
=rand(p,s)来改变每段的句子数以及段落数。将“ p ”替换为您想要的段落数,将“ s ”替换为您想要在每个段落中的句子数。例如,如果您想要 3 个段落,每个段落 6 个句子,您可以在空白段落中输入以下内容:
=rand(3,6)
如果需要,您可以省略句子计数参数 (' s '),Word将采用每段的默认句子数,在Word 2016中为 3 。
如果你想生成Lorem Ipsum文本而不是上面的随机文本,那么你可以简单地使用 lorem 函数,如下所示:
=lorem(5,5)
与 rand 函数相同的规则适用。如果您更喜欢 lorem ipsum 文本,这是将其插入Word的最佳方式。如果您使用在线 lorem ipsum 生成器并将其复制并粘贴到Word中,它将突出显示所有拼写错误的文本,并且所有内容都将变为红色。当您使用该函数生成文本时,它不会对其进行拼写检查或证明。
启用在键入时替换文本
如果在Word(Word)中插入随机文本不适合您,请单击Office按钮,然后单击菜单底部的Word 选项按钮。(Word Options)在较新版本的Word中,单击文件(File)和选项(Options)。
在Word 选项(Word Options)对话框中,单击左窗格中的校对(Proofing)。
单击自动更正选项(AutoCorrect Options)按钮。
Word 显示“自动更正(AutoCorrect)”对话框的“自动更正(AutoCorrect)”选项卡。确保选中“键入时替换文本”(Replace text as you type)复选框。
如果您使用的是旧版本的 Word,则 可以在“工具(Tools)”菜单下找到“自动更正选项”。(AutoCorrect Options)
如果您实际查看“自动更正(AutoCorrect)”对话框中的“自动更正(AutoCorrect)替换文本”条目,您将不会发现任何关于此随机文本功能的信息。这似乎是Word的一个隐藏功能。享受!
Generate Random Text or Lorem Ipsum Text in MS Word
Ever need to add some random or meaningless text into Microsoft Word to test а document, temporarily fill some space, or to see how some fоrmatting lookѕ? Luckily, Word provides a couple of quick and easy methods for entering random text into your document.
Random Text
To do this, position the cursor at the beginning of a blank paragraph. Type the following and press Enter. It doesn’t matter if you use lowercase, uppercase, or mixed case.
=rand()
Depending on your version of Word, you’ll get a default set of paragraphs with the same number of sentences in each paragraph. In Word 2016, I got 5 paragraphs, each with three sentences. All of the sentences are helpful hints on how to use Word.
In older versions of Word, it would give you paragraphs consisting of the classic sampler sentence “The quick brown fox jumps over the lazy dog.” If you want that in newer versions of Word, just use the rand.old function.
=rand.old()
You can vary the number of sentences per paragraph, as well as the number of paragraphs, by using the format =rand(p,s). Replace ‘p’ with the number of paragraphs you want, and ‘s’ with the number of sentences you want in each paragraph. For example, if you wanted 3 paragraphs of 6 sentences each, you would enter the following into a blank paragraph:
=rand(3,6)
You can leave out the sentence count parameter (‘s’), if desired, and Word will resort to the default number of sentences per paragraph, which is 3 in Word 2016.
If you want to generate Lorem Ipsum text instead of the above random text, then you can simply use the lorem function as shown below:
=lorem(5,5)
The same rules apply as with the rand function. If you prefer lorem ipsum text, this is the best way to insert it into Word. If you use an online lorem ipsum generator and copy and paste it into Word, it will highlight all the text as incorrectly spelled and everything will be red. When you generate the text using the function, it doesn’t spell check it or proof it.
Enable Replace Text As You Type
If inserting random text doesn’t work for you in Word, click the Office button and click the Word Options button at the bottom of the menu. In newer versions of Word, click on File and Options.
On the Word Options dialog box, click Proofing in the left pane.
Click the AutoCorrect Options button.
Word displays the AutoCorrect tab of the AutoCorrect dialog box. Make sure the Replace text as you type check box is checked.
If you are using an older version of Word, the AutoCorrect Options can be found under the Tools menu.
If you actually look through the AutoCorrect replacement text entries in the AutoCorrect dialog box, you will find nothing there about this random text feature. It seems to be a hidden feature of Word. Enjoy!