class Promoted::Ruby::Client::Sampler
Public Instance Methods
sample_random?(threshold)
click to toggle source
# File lib/promoted/ruby/client/sampler.rb, line 5 def sample_random? (threshold) true if threshold >= 1.0 false if threshold <= 0.0 threshold >= rand() end