After centuries pondering whether we are fortune’s fools, we are still struggling to work out if the cosmos is predictable or ruled by chance