powered by
is.derangement(x)
id
is.derangement(rperm(16,4))
Run the code above in your browser using DataLab