Saturday, April 08, 2006

Need some sample text for testing

I recently discovered a useful function in Office Word that allow you to generate some sample text. It is very useful when you need some text for your tests instead of typing manually "bla bla bla".

Open Word, create a new document and type =rand()
Word will automatically generates the following text:

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

You can even pass 2 parameters to the rand() function. First parameter is the number of paragraph to generate and the second one is the number of sentences per paragraph.

By default, rand() is equal to rand(3,5)

Hope this will be helpful.