ifp ( p true false -- )
Random combinators

Next:whenp ( p true -- )


Vocabulary
combinators.random

Inputs
pa number between 0 and 1
truea quotation
falsea quotation


Outputs
None

Word description
Calls the true quotation with probability p and the false quotation with probability (1-p).

Definition