In a given teaspoon of ocean water in the top layer, there are millions of bacteria (in soil there can be up to 1 billion). Each one lives for a day or two before it either divides or is consumed, with a handful of mutations at each round of division. So ~200 divisions a year, for three billion years, with selection stochastically whittling out the few good mutations the crop up now and then, in a diversity of changing ecosystems and you end up with where we are today. Oh, and the occasional horizontal gene transfer for extra spice.
Obviously that is a large hand wave -- the numbers above are from today's environment; early on the biotic density was lower. But the large numbers swamp things. The only real mystery is how things initially got started. But again, it is hard to imagine the time scale involved and the wide variety of environments that exist over the time to imagine the happy accident where the first self-replicating molecule just happen in the right environment that was stable enough for long enough for that self replication to gain traction.
Evolution producing a complicated, half non-working, incomprehensible, "everything interacts with everything else in a chaotic and unpredictable to us way", is the EXPECTED outcome.
It's similar to how many big programming projects become spaghetti messes of half integrations and barely functional parts hooked together half-hazardly where every feature relies on a bit of code nobody understands. It's an "iterate on the stuff that works" process, except the machinery inside a cell is way more effective and tolerant of such a regime than our stupidly strict programming languages and computers.
All it requires is mutations, time and selection pressure.
The Blind Watchmaker is still a good read.
I understand there would be limitations in the lifespan of the monkey and such, but in a hypothetical case, would that work?
So, a better (but still not great) question, would be, if a monkey bangs on keys forever would they ever produce any kind of story at all?
But, that's still not good enough, because evolution is iterative, and would pick out very short stories that worked a bit, and that page kept getting duplicated out to new monkeys who would start typing from the end of that story
Therefore, to attribute such a well-ordered and well-balanced being which has unity to the jumbled hands of innumerable, lifeless, ignorant, aggressive, unconscious, chaotic, blind and deaf natural causes, the blindness and deafness of which increase with their coming together and intermingling among the ways of numberless possibilities, is as unreasonable as accepting innumerable impossibilities all at once. If we leave this impossibility aside and assume that material causes have effects, these effects can only occur through direct contact and touch. However, the contact of natural causes is with the exteriors of living beings. And yet we see that the interiors of such beings (like a Single Cell) , where the hands of material causes can neither reach nor touch, are ten times more delicate, well-ordered and perfect as regards art than their exteriors. Therefore, although tiny animate creatures, on which the hands and organs of material causes can in no way be situated, indeed they cannot touch the creatures’ exteriors all at once even, are more strange and wonderful as regards their art and creation than the largest creatures, to attribute them to those lifeless, unknowing, crude, distant, vast, conflicting, deaf and blind causes can result only from a deafness and blindness compounded to the number of animate beings.(from light of Quran)
The convergent evolution of pitcher plants is an example of this. There are a number of features that evolve to the same functionality in plants, and many of them have to work together to become fully functional. Yet we see in plants separated by vast distances and millions of years of separation that traits that are useless alone encode themselves and then will will have near spontaneous usefulness when some other gene evolves.
The laws of large numbers are not things the human mind really grasps well at all.