Random. This pseudo random number generator uses the a very fast PRNG from BouncyCastle.
The JRE random will be used when creating a new generator to add some random data to the seed.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final RandomGenerator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | fill(byte[]
byte array to be filled. bytes, int index to start filling at. start, int length of segment to fill. len)Implements org. Fill part of bytes with random values. |
| public String | |
| private int | |
| public int | random(int
The range upper limit n)Implements org. Returns a pseudo-random uniformly distributed |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| random | back to summary |
|---|---|
| private final RandomGenerator random | |
| BouncyCastleRandom | back to summary |
|---|---|
| public BouncyCastleRandom() | |
| fill | back to summary |
|---|---|
| public void fill(byte[] bytes, int start, int len) Implements org. Doc from org. Fill part of bytes with random values.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| next | back to summary |
|---|---|
| private int next(int numBits) | |
| random | back to summary |
|---|---|
| public int random(int n) Implements org. Returns a pseudo-random uniformly distributed
| |