org.apache.commons.math.random
Class TestRandomGenerator

java.lang.Object
  extended by org.apache.commons.math.random.AbstractRandomGenerator
      extended by org.apache.commons.math.random.TestRandomGenerator
All Implemented Interfaces:
org.apache.commons.math.random.RandomGenerator

public class TestRandomGenerator
extends org.apache.commons.math.random.AbstractRandomGenerator

Dummy AbstractRandomGenerator concrete subclass that just wraps a java.util.Random instance. Used by AbstractRandomGeneratorTest to test default implementations in AbstractRandomGenerator.

Version:
$Revision: 780933 $ $Date: 2009-06-02 00:39:12 -0400 (Tue, 02 Jun 2009) $

Constructor Summary
TestRandomGenerator()
           
 
Method Summary
 double nextDouble()
           
 void setSeed(long seed)
           
 
Methods inherited from class org.apache.commons.math.random.AbstractRandomGenerator
clear, nextBoolean, nextBytes, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRandomGenerator

public TestRandomGenerator()
Method Detail

setSeed

public void setSeed(long seed)
Specified by:
setSeed in interface org.apache.commons.math.random.RandomGenerator
Specified by:
setSeed in class org.apache.commons.math.random.AbstractRandomGenerator

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface org.apache.commons.math.random.RandomGenerator
Specified by:
nextDouble in class org.apache.commons.math.random.AbstractRandomGenerator


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.