# File lib/more/facets/random.rb, line 90 def maybe(chance = 0.5, &block) if block then yield if rand < chance else rand < chance end end