On number-theoretic method in statistics simulation