Enum

shuffle/1

shuffle(enumerable)

Returns the elements enumerable shuffled.

This function uses Erlang’s :rand module to calculate the random value. Check its documentation for setting a different random algorithm or a different seed.