Skip to contents

Equivalent of RandBoolean() in Insight Maker

Usage

rbool(p)

Arguments

p

Probability of TRUE, numerical value between 0 and 1

Value

Boolean

Examples

rbool(.5)
#> [1] FALSE