eduni.distributions
Interface Seedable

All Known Subinterfaces:
ContinuousGenerator, DiscreteGenerator
All Known Implementing Classes:
Bernoulli, Beta, Binomial, Cauchy, ChiSquare, Erlang, FDistribution, Gamma, Generator, Geometric, Invgamma, Logistic, Negexp, Normal, Pareto, Pascal, Poisson, RandomGenerator, SeedGenerator, Tstudent, Uniform, Weibull

public interface Seedable

represents classes which has a seed

See Also:
Generator, ContinuousGenerator, DiscreteGenerator

Method Summary
 long getSeed()
          Get the random number generator's seed.
 void reseed()
          Get another seed well-spaced (from the default SeedGenerator)
 void setSeed(long seed)
          Set the random number generator's seed.
 

Method Detail

setSeed

public void setSeed(long seed)
Set the random number generator's seed.

Parameters:
seed - The new seed for the generator

getSeed

public long getSeed()
Get the random number generator's seed.

Returns:
The generator's seed

reseed

public void reseed()
Get another seed well-spaced (from the default SeedGenerator)