Top-level
Types
Permutation over [0, size) that mixes within the enclosing power-of-two block and cycle-walks until the output lands in range. size is read as unsigned, so -1 means 2^32 - 1 values. const must be odd.
Permutation over [0, size) that mixes within the enclosing power-of-two block and cycle-walks until the output lands in range. size is read as unsigned, so -1 means 2^64 - 1 values. const must be odd.
Permutation over all 32-bit values using keyed xor-shift-multiply rounds. The multipliers c1 and c2 must be odd.
Permutation over all 64-bit values using keyed xor-shift-multiply rounds. The multipliers c1 and c2 must be odd.
Permutation over [0, size) backed by shuffled lookup tables.
Permutation over [0, size) backed by shuffled lookup tables.
Functions
Seeded variant of intPermutation; deterministic for a given size, seed and rounds.
Creates an IntPermutation over [0, size).
Seeded variant of intPermutation over range.
Creates an IntPermutation whose domain is the non-empty range. Implementation and default rounds are chosen from the range length.
Seeded variant of longPermutation; deterministic for a given size, seed and rounds.
Creates a LongPermutation over [0, size).
Seeded variant of longPermutation over range.
Creates a LongPermutation whose domain is the non-empty range. Implementation and default rounds are chosen from the range length.
Returns a view of this permutation shifted onto range, which must hold exactly IntPermutation.size values. On an existing range view, replaces its range.
Returns a view of this permutation shifted onto range, which must hold exactly LongPermutation.size values. On an existing range view, replaces its range.
Inverse of permuted.