Function rand_round

pub fn rand_round(value: f64, random: &GameRng) -> i64
Expand description

Stochastic round of a non-integer value: 2.3 yields 3 with probability 0.3 and 2 otherwise. Consumes one f64 draw when there is a fraction to resolve, none when value is already integral.