shuffled

fun <R> Iterable<R>.shuffled(rg: RandomGenerator): Iterable<R>

Fisher–Yates shuffle algorithm using Apache random number generator. More information on Wikipedia.

Parameters

rg
    the simulation {@link RandomGenerator}.