list-shuffle List shuffling and sampling with optimal asymptotic time and space complexity using the imperative Fisher–Yates algorithm.