Package deepnetts.util
Class RandomGenerator
java.lang.Object
deepnetts.util.RandomGenerator
-
Method Summary
Modifier and TypeMethodDescriptionstatic final RandomGeneratorReturns the default global instance of random generatorReturns underlying Java random generatorvoidinitSeed(long seed) Initialize the underlying Java random number generator with specified seed.floatfloatintnextInt()
-
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()
-