Struct dice::Distribution [] [src]

pub struct Distribution { /* fields omitted */ }

Methods

impl Distribution
[src]

Returns the lowest possible result.

Returns the highest possible result.

Returns a Table with the exact odds for each result.

Returns a Table with the odds to get at least the result given. The lowest possible result will always have a 100% chance, and the highest possible result will always have the exact chance.

Returns a Table with the odds to get at most the result given. The highest possible result will always have a 100% chance, and the lowest possible result will always have the exact chance.

Returns the total number of possible permutations of the die.

Trait Implementations

impl Debug for Distribution
[src]

Formats the value using the given formatter.