Class SHR0
java.lang.Object
dev.nm.stat.random.rng.univariate.uniform.SHR0
- All Implemented Interfaces:
RandomLongGenerator
,RandomNumberGenerator
,Seedable
SHR0 is a simple uniform random number generator.
- See Also:
-
Constructor Details
-
SHR0
public SHR0()
-
-
Method Details
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextLong
public long nextLong()Description copied from interface:RandomLongGenerator
Get the next randomlong
.- Specified by:
nextLong
in interfaceRandomLongGenerator
- Returns:
- the next random
long
-
nextDouble
public double nextDouble()Description copied from interface:RandomNumberGenerator
Get the next randomdouble
.- Specified by:
nextDouble
in interfaceRandomNumberGenerator
- Returns:
- the next random number
-
nextInt
public int nextInt()
-