Package deepnetts.util
Class RandomGenerator
java.lang.Object
deepnetts.util.RandomGenerator
-
Method Summary
Modifier and TypeMethodDescriptionstatic final RandomGenerator
Returns the default global instance of random generatorReturns underlying Java random generatorvoid
initSeed
(long seed) Initialize the underlying Java random number generator with specified seed.float
float
int
nextInt()
-
Method Details
-
getDefault
Returns the default global instance of random generator- Returns:
-
getRandom
-
initSeed
public void initSeed(long seed) Initialize the underlying Java random number generator with specified seed. Can be also used to reinitialize the random number generator.- Parameters:
seed
-
-
nextFloat
public float nextFloat() -
nextGaussian
public float nextGaussian() -
nextInt
public int nextInt()
-