Randomly generating line from Shakespeare would take quintillions of years: experiment
The infinite monkey theorem suggests that if a monkey randomly presses keys on a typewriter indefinitely, it will eventually produce the entire works of William Shakespeare.