The meta of the joke, as well as the philosophical idea that underpins it, is that the universe is based in probability and we are the result of those infinite dice rolls eventually making a human race that can think and be conscious and create Hamlet.
The meta of the joke, as well as the philosophical idea that underpins it, is that the universe is based in probability and we are the result of those infinite dice rolls eventually making a human race that can think and be conscious and create Hamlet.