Function sfmt::thread_rng [−][src]
pub fn thread_rng() -> ThreadRng
Expand description
Create a thread local RNG.
The seed of SFMT is generated by rand::thread_rng()
on each thread.
let mut rng = sfmt::thread_rng();
rng.gen::<u32>(); // random u32