__construct() __construct(integer $dices) Constructor to create a Dice. Parameters integer $dices The number of dices of the DiceHand.
values() values() : array Get values of dices from last roll. Returns array — with values of the last roll.
average() average() : float Get the average of all dices. Returns float — as the average of all dices.
anyDieHasValue() anyDieHasValue(integer $value) : boolean Checks if any dice currently has the specified value. Parameters integer $value The value to add. Returns boolean — as some die has the specified value.
htmlHistogram() htmlHistogram() : string Gets the histogram for the dices. Returns string — as an html ul list.
histogram() histogram() : array Gets the histogram for the dices. Returns array — as a sorted histogram array.