This is a play on the odds that our planet Earth just "happened by pure chance".
And… given enough typewriters and monkeys, and enough time, one of them would by the random bashing of keys duplicate Hamlet - Yep, sure; there is a budding Shakespeare in every monkey. Just give it time and enough paper. Sure. There, there now.