#random #ffi #ranlux #ranluxpp

ranluxpp-rs

Ranlux++ FFI bindings for Rust

2 releases

0.3.1 Jan 30, 2024
0.3.0 Jan 30, 2024
0.2.0 Jan 30, 2024
0.1.0 Jan 30, 2024

#686 in Algorithms

24 downloads per month

LGPL-3.0-or-later

52KB
1.5K SLoC

Rust 1.5K SLoC // 0.0% comments C 158 SLoC // 0.3% comments

make

https://github.com/jirka-h/ranluxpp-portable binding

what this

ranlux++ pRNG

use

let rand = Ranluxpp::new();
let rand = Ranluxpp::new();
let mut x = [0u64; 9];
rand.rand(&mut x);
println!("{:?}", x);

ref

https://github.com/jirka-h/ranluxpp-portable

No runtime deps

~175KB