Basic Examples
Basic Examples
No elements are in their original places:
In[]:=
Out[]=
True
For even n, the list is a derangement:
{n,…,3,2,1}
In[]:=
Out[]=
True
Scope
Scope
The chances are about 1 in 3 that a permutation is a derangement:
In[]:=
Table@PermutationList@RandomPermutation@12,{9}
Out[]=
{True,False,False,False,False,False,False,False,True}