Class RandomPermutation

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

public final class RandomPermutation extends AbstractSingleResultPredicate
random_permutation(X,Y) - produces a random permutation of a list.

Succeeds if the second argument can be unified with a random permutation of the list represented by the first argument.