Module solana_core::weighted_shuffle [−][src]
The weighted_shuffle
module provides an iterator over shuffled weights.
Functions
weighted_best | Returns the highest index after computing a weighted shuffle. Saves doing any sorting for O(n) max calculation. |
weighted_shuffle | Returns a list of indexes shuffled based on the input weights
Note - The sum of all weights must not exceed |