immutable x = [3, 2, 1]; auto y = x.dup; Random random; y.randomlyShuffled(random);
See Implementation