com.x8ing.mc.distribution
Class RandomDistributionConstant

java.lang.Object
  extended by com.x8ing.mc.distribution.RandomDistributionConstant
All Implemented Interfaces:
RandomDistribution

public class RandomDistributionConstant
extends java.lang.Object
implements RandomDistribution

Uses the functionality that java provides itself.

Author:
Patrick Heusser

Constructor Summary
RandomDistributionConstant(int rangeMin, int rangeMax)
           
 
Method Summary
 double getNextRandomNumber()
          Returns the the distribution normalized between 0..1 and the the values 0...1.
 int getRangeMax()
           
 int getRangeMin()
           
 void setRangeMax(int rangeMax)
           
 void setRangeMin(int rangeMin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomDistributionConstant

public RandomDistributionConstant(int rangeMin,
                                  int rangeMax)
Method Detail

getNextRandomNumber

public double getNextRandomNumber()
Description copied from interface: RandomDistribution
Returns the the distribution normalized between 0..1 and the the values 0...1.

Specified by:
getNextRandomNumber in interface RandomDistribution
Returns:
See Also:
RandomDistribution.getNextRandomNumber()

getRangeMax

public int getRangeMax()

setRangeMax

public void setRangeMax(int rangeMax)

getRangeMin

public int getRangeMin()

setRangeMin

public void setRangeMin(int rangeMin)


by Patrick Heusser