public class PermutationGenerator extends Object
Constructor and Description |
---|
PermutationGenerator(long seed,
int size)
Constructs
PermutationGenerator |
PermutationGenerator(String seed,
int size)
Constructor
|
Modifier and Type | Method and Description |
---|---|
short |
itemAt(int pos)
Returns permutation element at a given position Throws
|
static void |
main(String[] args) |
public PermutationGenerator(String seed, int size)
seed
- seed used by RNGsize
- permutation sizepublic PermutationGenerator(long seed, int size)
PermutationGenerator
seed
- seed used by RNGsize
- permutation sizepublic short itemAt(int pos)
pos
- permutation element positionIndexOutOfBoundsException
- if index is less than 0 or greater than permutation size
specified in constructorCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.