Struct dice::Distribution
[−]
[src]
pub struct Distribution { /* fields omitted */ }
Methods
impl Distribution
[src]
fn new(outcomes: &[u32]) -> Distribution
fn min(&self) -> u32
Returns the lowest possible result.
fn max(&self) -> u32
Returns the highest possible result.
fn exactly(&self) -> Table
Returns a Table
with the exact odds for each result.
fn at_least(&self) -> Table
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.
fn at_most(&self) -> Table
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.
fn possible_permutations(&self) -> u32
Returns the total number of possible permutations of the die.