Shuffle samples before computing statistics