Documentation Prolog Predicate Reference random maybe/1

maybe/1

Succeed or fail with a certain probability.

Description

maybe( +number )

maybe(P) can be true with probability of P and false with a probability 1 - P.

Implementation