class Faker::Boolean
def boolean(true_ratio: 0.5)
-
(Boolean)
-
Parameters:
-
true_ratio
(Float
) -- The likelihood (as a float, out of 1.0) for the method to return `true`.
def boolean(true_ratio: 0.5) (rand < true_ratio) end
(Boolean)
-
true_ratio
(Float
)
-- The likelihood (as a float, out of 1.0) for the method to return `true`.
def boolean(true_ratio: 0.5) (rand < true_ratio) end