The theory of uniform distribution