org.apache.commons.math3.random
Class RandomAdaptorTest.ConstantGenerator

java.lang.Object
  extended by org.apache.commons.math3.random.RandomAdaptorTest.ConstantGenerator
All Implemented Interfaces:
RandomGenerator
Enclosing class:
RandomAdaptorTest

public static class RandomAdaptorTest.ConstantGenerator
extends Object
implements RandomGenerator


Constructor Summary
RandomAdaptorTest.ConstantGenerator()
           
RandomAdaptorTest.ConstantGenerator(double value)
           
 
Method Summary
 boolean nextBoolean()
           
 void nextBytes(byte[] bytes)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int n)
           
 long nextLong()
           
 void setSeed(int seed)
           
 void setSeed(int[] seed)
           
 void setSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAdaptorTest.ConstantGenerator

public RandomAdaptorTest.ConstantGenerator()

RandomAdaptorTest.ConstantGenerator

public RandomAdaptorTest.ConstantGenerator(double value)
Method Detail

nextBoolean

public boolean nextBoolean()
Specified by:
nextBoolean in interface RandomGenerator

nextBytes

public void nextBytes(byte[] bytes)
Specified by:
nextBytes in interface RandomGenerator

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface RandomGenerator

nextFloat

public float nextFloat()
Specified by:
nextFloat in interface RandomGenerator

nextGaussian

public double nextGaussian()
Specified by:
nextGaussian in interface RandomGenerator

nextInt

public int nextInt()
Specified by:
nextInt in interface RandomGenerator

nextInt

public int nextInt(int n)
Specified by:
nextInt in interface RandomGenerator

nextLong

public long nextLong()
Specified by:
nextLong in interface RandomGenerator

setSeed

public void setSeed(int seed)
Specified by:
setSeed in interface RandomGenerator

setSeed

public void setSeed(int[] seed)
Specified by:
setSeed in interface RandomGenerator

setSeed

public void setSeed(long seed)
Specified by:
setSeed in interface RandomGenerator


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.