:ANY

Purpose

Selects a random inference branch at the present branch point and follows it. Eliminates all other branches.

Parameters

clause
A clause to be evaluated.

Examples

  (:ANY (:INSTANCE Frogs ?frog))

Success criteria

Succeeds if there is at least one binding list created by the clause.

Failure criteria

Fails if the clause fails.

Notes

Uses the Java random number generator in Math.random() to select which branch to follow. Currently, the user can not control the generation of these random numbers.

Related commands

None.

Back to...

Algernon commands
Algernon Documentation Central
Algernon home page