We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c3ed9 commit aaea00bCopy full SHA for aaea00b
src/types.rs
@@ -293,15 +293,15 @@ macro_rules! impl_traits {
293
impl RandNormal for $real {
294
fn randn<R: Rng>(rng: &mut R) -> Self {
295
let dist = Normal::new(0., 1.);
296
- dist.ind_sample(rng) as $real
+ dist.sample(rng) as $real
297
}
298
299
300
impl RandNormal for $complex {
301
302
303
- let re = dist.ind_sample(rng) as $real;
304
- let im = dist.ind_sample(rng) as $real;
+ let re = dist.sample(rng) as $real;
+ let im = dist.sample(rng) as $real;
305
Self::new(re, im)
306
307
0 commit comments