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.
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.
      Specified by:
      seed in interface Seedable
      Parameters:
      seeds - the seeds
    • nextLong

      public long nextLong()
      Description copied from interface: RandomLongGenerator
      Get the next random long.
      Specified by:
      nextLong in interface RandomLongGenerator
      Returns:
      the next random long
    • nextDouble

      public double nextDouble()
      Description copied from interface: RandomNumberGenerator
      Get the next random double.
      Specified by:
      nextDouble in interface RandomNumberGenerator
      Returns:
      the next random number
    • nextInt

      public int nextInt()