Class Xoroshiro128PlusRandom

java.lang.Object
java.util.Random
com.carrotsearch.randomizedtesting.Xoroshiro128PlusRandom
All Implemented Interfaces:
Serializable

public class Xoroshiro128PlusRandom extends Random
Implements Xoroshiro128PlusRandom. Not synchronized (anywhere).
See Also:
  • Field Details

    • DOUBLE_UNIT

      private static final double DOUBLE_UNIT
      See Also:
    • FLOAT_UNIT

      private static final float FLOAT_UNIT
      See Also:
    • s0

      private long s0
    • s1

      private long s1
  • Constructor Details

    • Xoroshiro128PlusRandom

      public Xoroshiro128PlusRandom(long seed)
  • Method Details

    • setSeed

      public void setSeed(long seed)
      Overrides:
      setSeed in class Random
    • nextBoolean

      public boolean nextBoolean()
      Overrides:
      nextBoolean in class Random
    • nextBytes

      public void nextBytes(byte[] bytes)
      Overrides:
      nextBytes in class Random
    • nextDouble

      public double nextDouble()
      Overrides:
      nextDouble in class Random
    • nextFloat

      public float nextFloat()
      Overrides:
      nextFloat in class Random
    • nextInt

      public int nextInt()
      Overrides:
      nextInt in class Random
    • nextInt

      public int nextInt(int n)
      Overrides:
      nextInt in class Random
    • nextGaussian

      public double nextGaussian()
      Overrides:
      nextGaussian in class Random
    • nextLong

      public long nextLong()
      Overrides:
      nextLong in class Random
    • next

      protected int next(int bits)
      Overrides:
      next in class Random