[−][src]Function rpgdk::dice::roll
pub fn roll(d: Dice) -> i16
Calculates common dice roll total, per dice type.
Arguments
count
- Total number of dice.bias
- Single value representing adjusted modifiers.
Example
// Roll two D20 dice, each with a -2 chance of success let roll = dice::roll(dice::Dice::D20(4, -2));