Crate sfmt [] [src]

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

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

Structs

SFMT

State of SFMT

ThreadRng

Thread-local RNG based on SFMT.

Functions

thread_rng

Create a thread local RNG.