Class XorShift128Random

  • All Implemented Interfaces:
    Serializable

    public final class XorShift128Random
    extends Random
    Random implementation using the Xorshift+ (xorshift128plus) algorithm
    See Also:
    Serialized Form
    • Constructor Detail

      • XorShift128Random

        public XorShift128Random()
      • XorShift128Random

        public XorShift128Random​(long seed)
      • XorShift128Random

        public XorShift128Random​(String state)
    • Method Detail

      • setSeed

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

        protected int next​(int bits)
        Overrides:
        next in class Random
      • nextLong

        public long nextLong()
        Overrides:
        nextLong in class Random