Class Xorshift128PlusRandom

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public final class Xorshift128PlusRandom
    extends Random
    Deprecated.
    this class will be removed in the next major version. https://en.wikipedia.org/wiki/Xorshift
    [Deprecated] A subclass of Random that implements the Xorshift 128 Plus random number generator.
    See Also:
    Serialized Form
    • Constructor Detail

      • Xorshift128PlusRandom

        public Xorshift128PlusRandom()
        Deprecated.
      • Xorshift128PlusRandom

        public Xorshift128PlusRandom​(int salt)
        Deprecated.
        Constructor that receives an integer as 'salt'. This value is combined with the current milliseconds and the object hash code to generate two seeds.
        Parameters:
        salt - a number used to generate two seeds.
      • Xorshift128PlusRandom

        public Xorshift128PlusRandom​(long[] seed)
        Deprecated.
    • Method Detail

      • next

        protected int next​(int bits)
        Deprecated.
        Overrides:
        next in class Random
      • nextInt

        public int nextInt()
        Deprecated.
        Overrides:
        nextInt in class Random
      • nextLong

        public long nextLong()
        Deprecated.
        Overrides:
        nextLong in class Random