review: change roll result type to i32

This commit is contained in:
2025-11-16 09:52:44 +01:00
parent e12e954d19
commit 4d4810b52b
6 changed files with 11 additions and 11 deletions

View File

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