public abstract class AbstractDistribution extends AbstractStringify implements FlDistribution.Template
Distribution.FlDistribution.FlRandom, FlDistribution.TemplateDistribution.RandomNumbers| Constructor and Description |
|---|
AbstractDistribution(AbstractDistribution source) |
AbstractDistribution(long seed) |
AbstractDistribution(long seed,
LongSupplier seedSupplier) |
AbstractDistribution(LongSupplier seedSupplier) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getSeed() |
protected abstract FlDistribution.FlRandom |
newRandom(long seed) |
FlDistribution.FlRandom |
toRandomNumbers(long seedHint)
If this is a random number generator, returns itself;
otherwise returns a new random number generator.
|
StringBuilder |
toString(StringBuilder sb) |
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfluentDistribution, valuestemplate, wrap, wrapgetValueTypepublic AbstractDistribution(LongSupplier seedSupplier)
public AbstractDistribution(long seed)
public AbstractDistribution(long seed,
LongSupplier seedSupplier)
public AbstractDistribution(AbstractDistribution source)
protected long getSeed()
public FlDistribution.FlRandom toRandomNumbers(long seedHint)
DistributiontoRandomNumbers in interface DistributiontoRandomNumbers in interface FlDistributiontoRandomNumbers in interface FlDistribution.TemplateseedHint - generators created with the same seed should produce the same valuespublic StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class AbstractStringifyprotected abstract FlDistribution.FlRandom newRandom(long seed)
Copyright © 2019. All rights reserved.