Function d20::roll_range [] [src]

pub fn roll_range<'a>(min: i32, max: i32) -> Result<i32, &'a str>

Generates a random number within the specified range. Returns a Result containing either a valid signed 32-bit integer with the randomly generated number or some text indicating the reason for failure.