module FFaker::Boolean

Public Instance Methods

maybe() click to toggle source
# File lib/ffaker/boolean.rb, line 8
def maybe
  case rand(0..1)
  when 0 then true
  when 1 then false
  end
end
Also aliased as: random, sample
random()
Alias for: maybe
sample()
Alias for: maybe