quad-rand 0.2.3

Pseudo random implementation with core atomics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use quad_rand::compat::QuadRand;
use rand::seq::SliceRandom;

fn main() {
    let mut vec = vec![1, 2, 3, 4, 5, 6];
    println!("ordered: {:?}", vec);

    // QuadRand is rand::RngCore implementation, allowing to use all the cool stuff from rand
    vec.shuffle(&mut QuadRand);
    println!("shuffled: {:?}", vec);
}