pub fn fastrange_32(word: u32, p: u32) -> u32
Given a value “word”, produces an integer in [0,p) without division.