pub fn shuffle(indices: &mut [i64], seed: u64) -> Result<()>Expand description
Fisher-Yates shuffle using the donor’s PCG32 stream and unbiased rejection.
A nonzero seed reproduces the C++ oa::Random(seed) permutation. Zero uses
the system clock. This generator is for sampling, not cryptography.
§Errors
Returns an error when seed zero cannot be derived from the system clock.