The infinite monkey theorem says that a monkey randomly hitting keys on a typewriter will eventually type out one of William Shakespeare's works. When people talk about the infinite monkey theorem, the "monkey" is not always a real monkey. Instead, it is an example of a device that produces random letters. However, the chances of a monkey actually typing a text, like Shakespeare's "Hamlet", are very small.