rantz_random 1.2.1

Mostly just a wrapper around fastrand for a bunch of types. Supports bevy and rantz_spatial2d.
Documentation
use crate::prelude::Shuffle;

impl<T> Shuffle<T> for Vec<T>
where
    T: Clone,
{
    fn shuffle(&mut self) {
        fastrand::shuffle(self.as_mut_slice());
    }
}

#[cfg(feature = "bevy")]
mod bevy {
    use crate::prelude::Shuffle;
    use bevy::utils::HashSet;
    use std::hash::Hash;

    impl<T> Shuffle<T> for HashSet<T> where T: Clone + Eq + Hash {}
}