Adding knuth_shuffle
to your list of dependencies in mix.exs
:
def deps do
[
{:knuth_shuffle, "~> 0.1.0"}
]
end
And then, run mix deps.get
in your terminal to install the module.
This module provides a function to shuffle a given lists.
KnuthShuffle.shuffle(lists)