kpermute

intPermutation

fun intPermutation(size: Int = Int.MAX_VALUE, rng: Random = Random.Default, rounds: Int = 0): IntPermutation(source)

Creates an IntPermutation over [0, size).

A rounds of 0 picks a size-dependent default.


fun intPermutation(size: Int = Int.MAX_VALUE, seed: Long, rounds: Int = 0): IntPermutation(source)

Seeded variant of intPermutation; deterministic for a given size, seed and rounds.


fun intPermutation(range: IntRange, rng: Random = Random.Default, rounds: Int = 0): IntPermutation(source)

Creates an IntPermutation whose domain is the non-empty range. Implementation and default rounds are chosen from the range length.


Seeded variant of intPermutation over range.

longPermutation

fun longPermutation(size: Long = Long.MAX_VALUE, rng: Random = Random.Default, rounds: Int = 0): LongPermutation(source)

Creates a LongPermutation over [0, size).

A rounds of 0 picks a size-dependent default.


fun longPermutation(size: Long = Long.MAX_VALUE, seed: Long, rounds: Int = 0): LongPermutation(source)

Seeded variant of longPermutation; deterministic for a given size, seed and rounds.


fun longPermutation(range: LongRange, rng: Random = Random.Default, rounds: Int = 0): LongPermutation(source)

Creates a LongPermutation whose domain is the non-empty range. Implementation and default rounds are chosen from the range length.


Seeded variant of longPermutation over range.