Elon Musk believes we are living inside a (computer) simulation. I just came across this Karl Popper quote:
Appealing to his [Einstein's] way of expressing himself in theological terms, I said: If God had wanted to put everything into the universe from the beginning, He would have created a universe without change, without organisms and evolution, and without man and man's experience of change. But he seems to have thought that a live universe with events unexpected even by Himself would be more interesting than a dead one.
As quoted in Omnipotence and Other Theological Mistakes by Charles Hartshorne (1984)