RandomLongSource, RestorableUniformRandomProvider, UniformRandomProviderMersenneTwister64, SplitMix64, TwoCmres, XorShift1024Starpublic abstract class LongProvider extends BaseProvider implements RandomLongSource
long-based
source randomness.| Constructor | Description |
|---|---|
LongProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
nextBoolean() |
|
void |
nextBytes(byte[] bytes) |
|
void |
nextBytes(byte[] bytes,
int start,
int len) |
|
double |
nextDouble() |
|
float |
nextFloat() |
|
int |
nextInt() |
|
long |
nextLong() |
checkIndex, checkStateSize, fillState, fillState, getStateInternal, nextInt, nextLong, restoreState, saveState, setStateInternal, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnextpublic LongProvider()
public long nextLong()
nextLong in interface UniformRandomProviderpublic int nextInt()
nextInt in interface UniformRandomProviderpublic double nextDouble()
nextDouble in interface UniformRandomProviderpublic boolean nextBoolean()
nextBoolean in interface UniformRandomProviderpublic float nextFloat()
nextFloat in interface UniformRandomProviderpublic void nextBytes(byte[] bytes)
nextBytes in interface UniformRandomProviderpublic void nextBytes(byte[] bytes, int start, int len)
nextBytes in interface UniformRandomProviderCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.