Function pathfinder::tools::roll

source ·
pub fn roll(min: u32, max: u32) -> u32
Expand description

Returns a random number between the min and maximum.

Examples

let nr = tools::roll(50, 60);
assert!(nr >= 50 && nr <= 60);