Class Xoroshiro128PlusRandom

  • All Implemented Interfaces:
    java.io.Serializable

    public class Xoroshiro128PlusRandom
    extends java.util.Random
    Implements Xoroshiro128PlusRandom. Not synchronized (anywhere).
    See Also:
    "http://xoroshiro.di.unimi.it/", Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static double DOUBLE_UNIT  
      private static float FLOAT_UNIT  
      private long s0  
      private long s1  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int next​(int bits)  
      boolean nextBoolean()  
      void nextBytes​(byte[] bytes)  
      double nextDouble()  
      float nextFloat()  
      double nextGaussian()  
      int nextInt()  
      int nextInt​(int n)  
      long nextLong()  
      void setSeed​(long seed)  
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Xoroshiro128PlusRandom

        public Xoroshiro128PlusRandom​(long seed)
    • Method Detail

      • setSeed

        public void setSeed​(long seed)
        Overrides:
        setSeed in class java.util.Random
      • nextBoolean

        public boolean nextBoolean()
        Overrides:
        nextBoolean in class java.util.Random
      • nextBytes

        public void nextBytes​(byte[] bytes)
        Overrides:
        nextBytes in class java.util.Random
      • nextDouble

        public double nextDouble()
        Overrides:
        nextDouble in class java.util.Random
      • nextFloat

        public float nextFloat()
        Overrides:
        nextFloat in class java.util.Random
      • nextInt

        public int nextInt()
        Overrides:
        nextInt in class java.util.Random
      • nextInt

        public int nextInt​(int n)
        Overrides:
        nextInt in class java.util.Random
      • nextGaussian

        public double nextGaussian()
        Overrides:
        nextGaussian in class java.util.Random
      • nextLong

        public long nextLong()
        Overrides:
        nextLong in class java.util.Random
      • next

        protected int next​(int bits)
        Overrides:
        next in class java.util.Random