Like randomShuffle, but returns results incrementally (still copies the input, but calls gen only as needed). Like randomCover, but much faster (O(n) instead of O(n^2), though less space-efficient.
See Implementation
Like randomShuffle, but returns results incrementally (still copies the input, but calls gen only as needed). Like randomCover, but much faster (O(n) instead of O(n^2), though less space-efficient.