Sounds similar to the http://en.wikipedia.org/wiki/Infinite_monkey_theorem ...
"a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type a given text, such as the complete works of William Shakespeare."