Const correctness for shuffle.