static <T> Sampler<T> random(float probability) {
        return CountingSampler.create(probability);
    }
Returns a probabilistic sampler which samples at the specified {@code probability}
between {@code 0.0} and {@code 1.0}.

@param probability the probability expressed as a floating point number
                   between {@code 0.0} and {@code 1.0}.
core/src/main/java/com/linecorp/armeria/common/util/Sampler.java