Macro peroxide::runif

source ·
macro_rules! runif {
    ( $x0:expr, $start:expr, $end:expr ) => { ... };
    ( $x0:expr ) => { ... };
}
Expand description

R like random uniform

§Examples

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

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

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