de.cesr.uranus.dist
Class UUniformDistributionController

java.lang.Object
  extended by Uniform
      extended by de.cesr.uranus.dist.UUniformDistributionController

public class UUniformDistributionController
extends Uniform

Uranus - Universal RAndom NUmber Service


Constructor Summary
UUniformDistributionController(double from, double to, RandomEngine engine)
           
UUniformDistributionController(RandomEngine engine)
           
 
Method Summary
protected  void log(Number rand)
          Logs the random number including names of distribution and generator.
 boolean nextBoolean()
           
 double nextDouble()
           
 double nextDoubleFromTo(double from, double to)
          Returns a uniformly distributed random number in the open interval (from,to) (excluding from and to).
 float nextFloatFromTo(float from, float to)
          Returns a uniformly distributed random number in the open interval (from,to) (excluding from and to).
 int nextInt()
          Returns a uniformly distributed random number in the closed interval [min,max] (including min and max).
 int nextIntFromTo(int from, int to)
           
 long nextLongFromTo(long from, long to)
          Returns a uniformly distributed random number in the closed interval [from,to] (including from and to).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUniformDistributionController

public UUniformDistributionController(RandomEngine engine)
Parameters:
engine -

UUniformDistributionController

public UUniformDistributionController(double from,
                                      double to,
                                      RandomEngine engine)
Parameters:
from -
to -
engine -
Method Detail

nextIntFromTo

public int nextIntFromTo(int from,
                         int to)
See Also:
cern.jet.random.Uniform#nextIntFromTo(int, int)

nextBoolean

public boolean nextBoolean()
See Also:
cern.jet.random.Uniform#nextBoolean()

nextDouble

public double nextDouble()
See Also:
cern.jet.random.Uniform#nextDouble()

nextDoubleFromTo

public double nextDoubleFromTo(double from,
                               double to)
Returns a uniformly distributed random number in the open interval (from,to) (excluding from and to). Pre conditions: from <= to.


nextFloatFromTo

public float nextFloatFromTo(float from,
                             float to)
Returns a uniformly distributed random number in the open interval (from,to) (excluding from and to). Pre conditions: from <= to.


nextInt

public int nextInt()
Returns a uniformly distributed random number in the closed interval [min,max] (including min and max).


nextLongFromTo

public long nextLongFromTo(long from,
                           long to)
Returns a uniformly distributed random number in the closed interval [from,to] (including from and to). Pre conditions: from <= to.


log

protected void log(Number rand)
Logs the random number including names of distribution and generator.

Parameters:
rand -