It rolls dice.
If available in Hex, the package can be installed
by adding dice to your list of dependencies in mix.exs:
def deps do
[
{:dice, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/dice.
alias Dice.{Die, Parser, Expression, Builder, Rollable, Roller, Modifier, Tray, Grammar}
Roller.roll("{4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3}") |> Enum.map(&(&1.total))
[15, 14, 14, 11, 9, 11]