Class SHR0
- java.lang.Object
-
- dev.nm.stat.random.rng.univariate.uniform.SHR0
-
- All Implemented Interfaces:
RandomLongGenerator,RandomNumberGenerator,Seedable
public class SHR0 extends Object implements RandomLongGenerator
SHR0 is a simple uniform random number generator.
-
-
Constructor Summary
Constructors Constructor Description SHR0()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublenextDouble()Get the next randomdouble.intnextInt()longnextLong()Get the next randomlong.voidseed(long... seeds)Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Method Detail
-
seed
public void seed(long... seeds)
Description copied from interface:SeedableSeed the random number/vector/scenario generator to produce repeatable experiments.
-
nextLong
public long nextLong()
Description copied from interface:RandomLongGeneratorGet the next randomlong.- Specified by:
nextLongin interfaceRandomLongGenerator- Returns:
- the next random
long
-
nextDouble
public double nextDouble()
Description copied from interface:RandomNumberGeneratorGet the next randomdouble.- Specified by:
nextDoublein interfaceRandomNumberGenerator- Returns:
- the next random number
-
nextInt
public int nextInt()
-
-