bcds.tools.random
Interface RndGen

All Known Implementing Classes:
RndArea, RndExp, RndLogNormal, RndNormal, RndPareto, RndUnif

public interface RndGen

Interface for random number generators.

The basic approach is that a RndGen "wraps" a random number generator, which is called the "randomness source". Calling the next method results in passing the request to the randomness source and applying some additional transformation, is needed.

Author:
Juan Segovia S.

Method Summary
 java.util.Random getRandomGen()
          Returns the current randomness source.
 double next()
          Returns a random number.
 void setRandomGen(java.util.Random rnd)
          Sets the the randomness source for this object.
 

Method Detail

next

double next()
Returns a random number.


setRandomGen

void setRandomGen(java.util.Random rnd)
Sets the the randomness source for this object.


getRandomGen

java.util.Random getRandomGen()
Returns the current randomness source.