Class XorShift128P


  • public class XorShift128P
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private long state0  
      private long state1  
    • Field Detail

      • state0

        private long state0
      • state1

        private long state1
    • Constructor Detail

      • XorShift128P

        public XorShift128P​(long seed)
      • XorShift128P

        public XorShift128P()
    • Method Detail

      • nextLong

        public long nextLong()
      • nextInt

        public int nextInt()
      • notZero

        private static long notZero​(long value)
      • nextInt

        public int nextInt​(int bound)