Refactoring to allow (sub)samplers to receive a RNG.