Class XorShift128P

java.lang.Object
com.carrotsearch.hppc.XorShift128P

public class XorShift128P extends Object
A fast pseudo-random number generator. For simplicity, we do not implement all of Random methods.
See Also:
  • "http://xorshift.di.unimi.it/"
  • "http://xorshift.di.unimi.it/xorshift128plus.c"
  • Field Details

    • state0

      private long state0
    • state1

      private long state1
  • Constructor Details

    • XorShift128P

      public XorShift128P(long seed)
    • XorShift128P

      public XorShift128P()
  • Method Details

    • nextLong

      public long nextLong()
    • nextInt

      public int nextInt()
    • notZero

      private static long notZero(long value)
    • nextInt

      public int nextInt(int bound)