dice v0.1.0 Dice View Source
Documentation for Dice.
Link to this section Summary
Functions
Returns the average roll of a d
-sided dice rolled n
times
Returns the maximum roll of a d
-sided dice rolled n
times
Returns the minimum roll of a d
-sided dice rolled n
times
Gets a list of a d
-sided dice rolled n
times
Returns the sum of a d
-sided dice rolled n
times
Link to this section Functions
Gets a list of a d
-sided dice rolled n
times.
Usage: Dice.roll(n, d)
Used to roll a d
-sided dice n
times, returning a list of the rolls.
Examples
iex> Dice.roll(10, 10)
[6, 10, 3, 6, 7, 1, 2, 9, 2, 4]