Function phragmen_balancing::common::to_range[][src]

pub fn to_range(x: usize, a: usize, b: usize) -> usize
Expand description

converts x into the range [a, b] in a pseudo-fair way.