[][src]Module solana::weighted_shuffle

The weighted_shuffle module provides an iterator over shuffled weights.

Functions

weighted_shuffle

Returns a list of indexes shuffled based on the input weights Note - The sum of all weights must not exceed u64::MAX