Uniform in [0, 1).
(&mut self)
| 1042 | |
| 1043 | /// Uniform in [0, 1). |
| 1044 | fn next_f32(&mut self) -> f32 { |
| 1045 | (self.next_u32() >> 8) as f32 / (1u32 << 24) as f32 |
| 1046 | } |
| 1047 | |
| 1048 | fn next_vec2(&mut self) -> Vec2 { |
| 1049 | Vec2::new(self.next_f32(), self.next_f32()) |
no test coverage detected