public class Permutations extends Object
Constructor and Description |
---|
Permutations(int length)
Creates instance with random seed.
|
Permutations(int length,
long seed)
Creates instance with given seed.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
long |
getSeed() |
Permutation |
randomPermutation()
Generates random permutation of integers [0 ..
|
public Permutations(int length)
length
- length of permutations to be created by this instancepublic Permutations(int length, long seed)
length
- length of permutations to be created by this instanceseed
- seed to be usedpublic int getLength()
public long getSeed()
public Permutation randomPermutation()
Copyright © 2016 Egothor. All Rights Reserved.