protected static final class AbstRandomBasedFactory.FastRandom extends Object implements AbstRandomBasedFactory.IRandom
| Constructor and Description |
|---|
FastRandom()
Default constructor.
|
FastRandom(LongSupplier randomFunction)
Constructor with a function which returns random numbers.
|
FastRandom(Random random)
Constructor with a random.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
nextBytes(int length)
Return a random array of bytes.
|
long |
nextLong()
Return a random number.
|
public FastRandom()
public FastRandom(Random random)
random - a randompublic FastRandom(LongSupplier randomFunction)
randomFunction - a functionpublic long nextLong()
AbstRandomBasedFactory.IRandomnextLong in interface AbstRandomBasedFactory.IRandompublic byte[] nextBytes(int length)
AbstRandomBasedFactory.IRandomnextBytes in interface AbstRandomBasedFactory.IRandomlength - the lengthCopyright © 2024. All rights reserved.