Used shuffle instead of permutation