SimJava
v2.0

eduni.simjava.distributions
Interface DiscreteGenerator

All Superinterfaces:
Generator
All Known Implementing Classes:
Sim_binomial_obj, Sim_pascal_obj, Sim_geometric_obj, Sim_bernoulli_obj, Sim_poisson_obj

public interface DiscreteGenerator
extends Generator

This interface defines the functionality that should be provided by random number generators based on discrete distributions.


Method Summary
 long sample()
          Sample the random number generator.
 
Methods inherited from interface eduni.simjava.distributions.Generator
get_name, get_seed, set_seed
 

Method Detail

sample

public long sample()
Sample the random number generator.
Returns:
The sample

SimJava
v2.0

The University of Edinburgh, 2002