Class RandomMember

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.list.RandomMember
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class RandomMember extends AbstractSingleResultPredicate
random_member(X,Y) - unifies first argument with term randomly selected from list of second argument.

Succeeds if the first argument can be unified with a randomly selected element of the list represented by the second argument.