If a monkey sits in front of a typewriter and types random letters for long enough, it won't, as many people think, type at random, but will indirectly and sometimes unnoticeably follow instructions, maybe not always, but you have to give a reason for him. You wouldn't just press a random yellow circled shaped button for no reason when there's thousands of other random buttons, right?
Let's say a monkey is at the typewriter, and you show him a sheet of random characters, the monkey may not follow these at the point you show them to him, but if you draw something the monkey likes under the text, it may attempt to write the letters in every order possible and try his problem solving to get whatever that is.
monkeys are smarter than humans, because they do not think of themselves as idiots.
if you attempt to (dis)prove this theory, remember that you can't read a monkey's mind, he might just be following the text for fun, you donät know if he likes bananas or not. If you say all monkeys like bananas, that's just racist.