Improve sampler (using generic default randon engine type).