Expand description
§predictive_shuffle
A predictive shuffling algorithm that allows for the predetermined selection of one or many items from a shuffled vec.
We define predictive as the ability for users to define the traits of a vector, with some sub-set of indices, to return the shuffled positions of those indices. This is a one-time operation that only computes the final shuffled locations of the input indices.
All algorithms can handle cryptographic, or non-cryptographic shuffling, with all shuffling implementations derived from an optimized version of Durstenfeld’s modern implementation of the Fisher-Yates shuffling algo.
Traits§
Functions§
- byte_
array - gen_
batch_ predictive_ shuffle - Predict Shuffled Position of Items from Seed
- gen_
batch_ predictive_ shuffle_ from_ seed - Predict Shuffled Position of Items from Seed
- gen_
crypto_ batch_ predictive_ shuffle - Predict Shuffled Position of Items from Seed
- gen_
crypto_ batch_ predictive_ shuffle_ from_ seed - Predict Shuffled Position of Items from Seed
- gen_
crypto_ modern_ shuffle - Implementing a crpytographic randomization algorithm [‘rand_chacha::ChaCha20Rng’], to generate a shuffled vector with the modern Fisher-Yates Algorithm
- gen_
crypto_ modern_ shuffle_ from_ seed - Implementing a crpytographic rnadomization algorithm [‘rand_chacha::ChaCha20Rng’], shuffle a given vector from with a with the modern Fisher-Yates Algorithm
- gen_
crypto_ predictive_ shuffle - Predict Shuffled Position of Items
- gen_
crypto_ predictive_ shuffle_ from_ seed - Predict Shuffled Position of Items from Seed
- gen_
fastrand_ shuffle - Generate shuffled vector with [‘fastrand::Rng’]
- gen_
fastrand_ shuffle_ from_ seed - Generate shuffled vector with from a seed with [‘fastrand::Rng’]
- gen_
modern_ shuffle - Generate a shuffled vector with the modern Fisher-Yates Algorithm
- gen_
modern_ shuffle_ from_ seed - Generate a shuffled vector from a seed with the modern Fisher-Yates Algorithm
- gen_
predictive_ shuffle - Predict shuffled position from size and starting position(s)
- gen_
predictive_ shuffle_ from_ seed - Predict shuffled position from size and starting position(s) with a seed
- hash