Sunday, February 25, 2007

Microsoft Word became crazy?

Searching around on the Internet I found this trick: Open an empty Word file (I have not tested it in Word 2007), type = rand (200,99) and press enter. Wait for 3 seconds and then a lot of pages will be filled with a repeating sentense (I use the Greek version of Word 2003 and the sentense that appears is part from a poem). As I released after, this is not a bug, it is an easy way to transfer text and Microsoft knows that it happens. If with a single line like this, Word could write down pages from my exercises, it would be for sure my favorite program to use.


Vang said...

Niko, these types of features are called "eastern eggs" and are all over the planet. It's small jokes programmers do to get away from boredom.

Quin said...

This is not an Easter egg but a feature. See
Microsoft Word allows you to quickly insert sample text into a document. To do this, type =rand() in the document where you want the text to appear, and then press ENTER.
By default, the sample text contains three paragraphs, with each paragraph containing five sentences. You can control how many paragraphs and sentences appear by adding numbers inside the parentheses.

The =rand() function has the following syntax
where p is the number of paragraphs and s is the number of sentences that you want to appear in each paragraph.

=rand(1) inserts one five-sentence paragraph of text

=rand(1,1) inserts one one-sentence paragraph of text.

=rand(1,2) inserts one two-sentence paragraph of text

=rand(2) inserts two five-sentence paragraphs of text

=rand(2,1) inserts two one-sentence paragraphs of text

=rand(10) inserts 10 five-sentence paragraphs of text

=rand(10,1) inserts 10 one-sentence paragraphs of text

=rand(10,10) inserts 10 ten-sentence paragraphs of text
Note When you omit the second number, the default is five sentences of text. The maximum number that can be used inside the parenthesis is 200 (this number may be lower depending on the number of paragraphs and sentences specified).