/// Return scores generated by rolling 1d20 for each score
Return scores generated by rolling 1d20 for each score
Return scores generated by rolling 1d20 for each score
pub fn d20() -> Self {
        let dice = Die::new(1, 20);
        let mut stats = [0; 6];
        for i in 0..6 {
            stats[i] = dice.roll().num().try_into().unwrap();
        }
        return Self::new(stats);
    }
pub fn d20 ( ) -> Self { let dice = Die :: new ( 1 , 20 ) ; let mut stats = [ 0 ; 6 ] ; for i in 0 .. 6 { stats [ i ] = dice . roll ( ) . num ( ) . try_into ( ) . unwrap ( ) ; } return Self :: new ( stats ) ; }
Return scores generated by rolling 1d20 for each score
Return scores generated by rolling 1d20 for each score