randomlyShuffled

  1. auto randomlyShuffled(Range r, RandomGen gen)
  2. auto randomlyShuffled(Range r)
    randomlyShuffled
    (
    Range
    )
    (
    Range r
    )

Examples

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

Meta