Package adams.data.random
Interface SeededRandomNumberGenerator<T extends Number>
-
- Type Parameters:
T- the type of random number to return
- All Superinterfaces:
Destroyable,OptionHandler,Randomizable,RandomNumberGenerator<T>,ShallowCopySupporter<RandomNumberGenerator>
- All Known Subinterfaces:
DistributionBasedRandomNumberGenerator<T>
- All Known Implementing Classes:
AbstractDistributionBasedRandomNumberGenerator,AbstractSeededRandomNumberGenerator,JavaRandomByte,JavaRandomDouble,JavaRandomInt
public interface SeededRandomNumberGenerator<T extends Number> extends RandomNumberGenerator<T>, Randomizable
Interface for seeded random number generators.- Version:
- $Revision: 4584 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetSeed()Returns the seed value.StringseedTipText()Returns the tip text for this property.voidsetSeed(long value)Sets the seed value.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.data.random.RandomNumberGenerator
next, reset
-
Methods inherited from interface adams.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
setSeed
void setSeed(long value)
Sets the seed value.- Specified by:
setSeedin interfaceRandomizable- Parameters:
value- the seed
-
getSeed
long getSeed()
Returns the seed value.- Specified by:
getSeedin interfaceRandomizable- Returns:
- the seed
-
seedTipText
String seedTipText()
Returns the tip text for this property.- Specified by:
seedTipTextin interfaceRandomizable- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-