Fix issue where sampler random_state parameter would be overridden.