feat: add min method to Outcome

This commit is contained in:
2025-11-16 09:50:17 +01:00
parent 331fd4d93a
commit e12e954d19
4 changed files with 49 additions and 1 deletions

View File

@@ -3,6 +3,6 @@ use crate::*;
impl Die {
pub fn roll(&self) -> u16 {
let mut rng = rand::rng();
rng.random_range(1..=self.sides)
rng.random_range(1..=self.sides) as u16
}
}