The infinite monkey theorem says that if you put an infinite number of monkeys in a room with an infinite number of typewriters, eventually one of them will type out the entire works of Shakespeare. This means that if you had a room full of monkeys each trying different combinations of words and letters, one of them would eventually get it right. It's like playing the lottery over and over again until one of the tickets eventually has all the right numbers!