static <T> Sampler<T> create(float probability) {
        final int percent = (int) (probability * 100.0f);
        checkArgument(percent >= 0 && percent <= 100,
                      "probability: %s (expected: 0.0 <= probability <= 1.0)", probability);
        if (percent == 0) {
            return Sampler.never();
        }
        if (percent == 100) {
            return Sampler.always();
        }
        return new CountingSampler<>(percent);
    }
Creates a new instance.

@param probability {@code 0.0} means never sample, {@code 1.0} means always sample.
                   Otherwise minimum probability is between {@code 0.01} and {@code 1.0}.
core/src/main/java/com/linecorp/armeria/common/util/CountingSampler.java