Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrafimenkov committed Oct 21, 2023
1 parent ee45683 commit 5c932d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/math/rand/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ impl<S: Source> Rand<S> {
/// with standard normal distribution (mean = 0, stddev = 1).
/// To produce a different normal distribution, callers can
/// adjust the output using:
///
/// sample = norm_float64() * desiredStdDev + desiredMean
/// `norm_float64() * desired_std_dev + desired_mean`
pub fn norm_float64(&mut self) -> f64 {
loop {
let j = self.uint32() as i32; // Possibly negative
Expand Down Expand Up @@ -451,8 +450,7 @@ pub fn float32() -> f32 {
/// from the default Source.
/// To produce a different normal distribution, callers can
/// adjust the output using:
///
/// sample = norm_float64() * desiredStdDev + desiredMean
/// `norm_float64() * desired_std_dev + desired_mean`
pub fn norm_float64() -> f64 {
return global_rand().lock().unwrap().norm_float64();
}
Expand Down

0 comments on commit 5c932d2

Please sign in to comment.