inference: make use of uniform_sample()

8 jobs for master