I don’t know who it was first pointed out that, given enough time, a monkey bashing away at random on a typewriter could produce all the works of Shakespeare. The operative phrase is, of course, given enough time.
https://en.wikipedia.org/wiki/Infinite_monkey_theorem