BooleanGenerator generator¶
Generate a boolean with a configurable probability of returning true.
Why: Use BooleanGenerator for binary business states with a known prevalence, such as active or consented; use a constant when every row must have the same state.
Category: core.
Output: bool.
1 | |
Parameters¶
prob_true:float; Default0.5— Probability from 0.0 to 1.0 that a row evaluates to true.