randomFalse

Generates false with the given probability p. Is equivalent to uniform() >= p. The probability of true is 1 - p correspondingly. 
randomFalse(double p)

Parameters

Name Type Description
p double the probability of false.

Result

Type Description
boolean false with probablity ptrue with probability 1 - p.