Crate sfmt

Source
Expand description

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

use rand_core::{RngCore, SeedableRng};
let mut rng = sfmt::SFMT::seed_from_u64(42);
let r = rng.next_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.