macro_rules! rnorm {
    ( $n:expr, $mean:expr, $sd:expr ) => { ... };
    ( $n:expr ) => { ... };
}
Expand description

R like random normal

Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
    let a = rnorm!(5, 2, 1);
    println!("{:?}", a);

    let b = rnorm!(5); // same as rnorm!(5,0,1)
    println!("{:?}", b);
}