Skip to main content

f32_24bits

Function f32_24bits 

Source
pub fn f32_24bits(bits: impl FnMut() -> u64) -> f32
Expand description

Returns a random f32 uniform on the 2²⁴ multiples of 2⁻²⁴ in [0 . . 1): the top 24 bits of one word, scaled by 2⁻²⁴.