The combinators.random vocabulary implements simple combinators to easily express random choices between multiple code paths.

For all these combinators, the stack effect of the different given quotations or words must be the same.

Variants of if, when and unless:
ifp ( p true false -- )

whenp ( p true -- )

unlessp ( p false -- )


Variants of case:
casep ( assoc -- quot )

casep* ( assoc -- quot )

call-random ( seq -- quot )

execute-random ( seq -- quot )