/knuth_shuffle

The Knuth shuffle algorithm in Elixir.

Primary LanguageElixir

KnuthShuffle

Installation

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.

Usage

This module provides a function to shuffle a given lists.

KnuthShuffle.shuffle(lists)