The infinite monkey theorem states that 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. In this context, "almost surely" is a mathematical term with a precise meaning, and the "monkey" is not an actual monkey, but a metaphor for an abstract device that produces a random sequence of letters ad infinitum. The theorem illustrates the perils of reasoning about infinity by imagining a vast but finite number, and vice versa. The probability of a monkey exactly typing a complete work such as Shakespeare's Hamlet is so tiny that the chance of it occurring during a period of time of the order of the age of the universe is minuscule, but not zero.
But technologies can help monkeys to write. If the monkeys are given a pen and some papers to spell the word “monkey”, they can only scratch on the paper. By contrast, if they are given a typewriter, it will take them over 10 years to produce the right spelling. However, if they can use computer programing, they can finish the task within a day.
Significantly focusing on the fact which is mentioned is the infinite monkey theorem and it comprises that if a monkey is given a typewriter, it takes over ten years to produce the right spelling. Additionally, if monkeys are given a pen and some papers, they can only make some sketches on the paper. Finally, it can be stated that with an infinite amount of time, a monkey hitting keys at random on a typewriter keyboard will almost surely type any given text, such as the complete works of William Shakespeare.