Sharing the sampler initialization with Clear().