The infinite monkey theorem states that a monkey hitting keys independently and at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, including the
While a monkey is used as a mechanism for the thought experiment, it would be unlikely to ever write Hamlet.