fix particle resample
fix UniformRealDistribution range check