Discreteness and the origin of probability in quantum mechanics