shuffle a sequence