Documentation random_permutation/2
available from version beta

random_permutation/2

Rearrange list randomly.

Description

random_permutation( +list, -list )
random_permutation( -list, +list )

random_permutation(List, Random_List) rearrange List randomly, generating Random_List. This predicate is symmetric and works both ways.

Implementation