I don't think an infinite amount of monkeys with an infinite amount of time are guaranteed to write a work of Shakespeare. If they acted completely randomly it would be, but they don't. They're monkeys. They follow certain behavioural patterns. Just because they have an infinite amount of time doesn't mean they're going to try everything there is to try.