Shuffle and unshuffle an array by seed/key.