Algorithm 1: Average Shuffle

1) for each i Î [1, 9] do

2) To shuffle an array a of n elements (indices 0 … n − 1);

3) for i from n − 1 down to 1 do

4) j ← random integer with 0 ≤ j ≤ i

5) exchange a [j] and a [i]