[][src]Function solana::weighted_shuffle::weighted_shuffle

pub fn weighted_shuffle<T>(weights: Vec<T>, rng: ChaChaRng) -> Vec<usize> where
    T: Copy + PartialOrd + Sum + Div<T, Output = T> + FromPrimitive + ToPrimitive