Class FasterRandom

  • All Implemented Interfaces:
    org.apache.commons.math3.random.RandomGenerator
    Direct Known Subclasses:
    AllocatorBenchmark.Rand

    public class FasterRandom
    extends Object
    implements org.apache.commons.math3.random.RandomGenerator
    • Constructor Detail

      • FasterRandom

        public FasterRandom()
    • Method Detail

      • setSeed

        public void setSeed​(int seed)
        Specified by:
        setSeed in interface org.apache.commons.math3.random.RandomGenerator
      • setSeed

        public void setSeed​(int[] ints)
        Specified by:
        setSeed in interface org.apache.commons.math3.random.RandomGenerator
      • setSeed

        public void setSeed​(long seed)
        Specified by:
        setSeed in interface org.apache.commons.math3.random.RandomGenerator
      • nextBytes

        public void nextBytes​(byte[] bytes)
        Specified by:
        nextBytes in interface org.apache.commons.math3.random.RandomGenerator
      • nextInt

        public int nextInt()
        Specified by:
        nextInt in interface org.apache.commons.math3.random.RandomGenerator
      • nextInt

        public int nextInt​(int i)
        Specified by:
        nextInt in interface org.apache.commons.math3.random.RandomGenerator
      • nextLong

        public long nextLong()
        Specified by:
        nextLong in interface org.apache.commons.math3.random.RandomGenerator
      • nextBoolean

        public boolean nextBoolean()
        Specified by:
        nextBoolean in interface org.apache.commons.math3.random.RandomGenerator
      • nextFloat

        public float nextFloat()
        Specified by:
        nextFloat in interface org.apache.commons.math3.random.RandomGenerator
      • nextDouble

        public double nextDouble()
        Specified by:
        nextDouble in interface org.apache.commons.math3.random.RandomGenerator
      • nextGaussian

        public double nextGaussian()
        Specified by:
        nextGaussian in interface org.apache.commons.math3.random.RandomGenerator