macro_rules! create_uniform { () => { ... }; ($seed: expr) => { ... }; }
一様分布
() =>
($seed: expr) =>
let mut uniform = rand_simple::create_uniform!(1192u32); assert_eq!(uniform.sample(), 0.66687147451259f64);
let mut uniform = rand_simple::create_uniform!(); println!("乱数: {}", uniform.sample()); // インスタンス生成時刻に依存するため、コンパイル時は値不明