public static < E > ImmutableList < E > shuffledCopy ( List < ? extends E > list , Random rng ) { final ArrayList < E > shuffled = Lists . newArrayList ( list ) ; Collections . shuffle ( shuffled , rng ) ; return ImmutableList . copyOf ( shuffled ) ; }
Returns a shuffled copy of the provided list .