dup and shuffle in Array#sample(n) when n >= length of array