Crate sfmt

source ·
Expand description

Rust implementation of SIMD-oriented Fast Mersenne Twister (SFMT) using stable SIMD

use rand::{Rng, FromEntropy};
let mut rng = sfmt::SFMT::from_entropy();
let r = rng.gen::<u32>();
println!("random u32 number = {}", r);

Structs

State of SFMT
Thread-local RNG based on SFMT.

Functions

Create a thread local RNG.