(&mut self)
| 36 | } |
| 37 | |
| 38 | fn normal_f32(&mut self) -> f32 { |
| 39 | let u1 = self.uniform_f32(); |
| 40 | let u2 = self.uniform_f32(); |
| 41 | |
| 42 | (-2.0 * u1.ln()).sqrt() * ((f32::consts::PI * 2.0) * u2).cos() |
| 43 | } |
| 44 | |
| 45 | fn normal_f64(&mut self) -> f64 { |
| 46 | let u1 = self.uniform_f64(); |
no test coverage detected