Hüsing, J. “An Accept-and-Reject Algorithm to Sample from a Set of Permutations Restricted by a Time Constraint”. Journal of Statistical Software, vol. 16, no. 6, May 2006, pp. 1-17, doi:10.18637/jss.v016.i06.