Package adams.data.random
Interface RandomNumberGenerator<T extends Number>
-
- Type Parameters:
T- the type of random number to return
- All Superinterfaces:
Destroyable,OptionHandler,ShallowCopySupporter<RandomNumberGenerator>
- All Known Subinterfaces:
DistributionBasedRandomNumberGenerator<T>,RandomDoubleRangeGenerator<T>,RandomIntegerRangeGenerator<T>,SeededRandomNumberGenerator<T>
- All Known Implementing Classes:
AbstractDistributionBasedRandomNumberGenerator,AbstractRandomNumberGenerator,AbstractSeededRandomNumberGenerator,JavaRandomByte,JavaRandomByteUnseeded,JavaRandomDouble,JavaRandomDoubleUnseeded,JavaRandomInt,JavaRandomIntUnseeded
public interface RandomNumberGenerator<T extends Number> extends OptionHandler, ShallowCopySupporter<RandomNumberGenerator>
Interface for 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 Tnext()Returns the nexct random number.voidreset()Resets the generator.-
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.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
reset
void reset()
Resets the generator.
-
next
T next()
Returns the nexct random number.- Returns:
- the next number
-
-