Enum.shuffle/1

defmodule Enum do
  def shuffle(enumerable)
end

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.