Class Xoshiro256StarStar

  • All Implemented Interfaces:
    Serializable

    public class Xoshiro256StarStar
    extends Random
    The pseudo random number generator of xoshiro256**. See http://prng.di.unimi.it/
    See Also:
    Serialized Form
    • Constructor Detail

      • Xoshiro256StarStar

        public Xoshiro256StarStar​(long s0,
                                  long s1,
                                  long s2,
                                  long s3)
        Constructs the PRNG with the given state. Precondition: state must not be all zero.
        Parameters:
        s0 - the first 64 bits.
        s1 - the second 64 bits.
        s2 - the third 64 bits.
        s3 - the fourth 64 bits.
    • Method Detail

      • nextLong

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

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

        public int next​(int bits)
        Overrides:
        next in class Random
      • nextBytes

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