public class DefaultBigIntegerShuffler extends java.lang.Object implements BigIntegerShuffler
BigIntegerShuffler based on ShufflerImpl.IDENTITY| Constructor and Description |
|---|
DefaultBigIntegerShuffler(java.math.BigInteger count)
Constructs a shuffler for indices in the range [0 ..
|
DefaultBigIntegerShuffler(java.math.BigInteger count,
java.util.Random rnd)
Constructs a shuffler for indices in the range [0 ..
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getShuffledIndex(java.math.BigInteger index)
Retrieves the value corresponding to
index in the permutation associated with this shuffler. |
DefaultBigIntegerShuffler |
withSeed(long seed) |
public DefaultBigIntegerShuffler(java.math.BigInteger count)
count - 1].count - the number of indices in the rangepublic DefaultBigIntegerShuffler(java.math.BigInteger count,
java.util.Random rnd)
count - 1], specifying the random number generator to be used.count - the number of indices in the rangernd - the random number generator to be usedpublic DefaultBigIntegerShuffler withSeed(long seed)
seed - the seed of the random generator used by this instancepublic java.math.BigInteger getShuffledIndex(java.math.BigInteger index)
BigIntegerShufflerindex in the permutation associated with this shuffler.getShuffledIndex in interface BigIntegerShuffler