All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class eduni.simjava.Sim_uniform_obj

java.lang.Object
   |
   +----eduni.simjava.Sim_uniform_obj

public class Sim_uniform_obj
extends Object
A uniformally distrubuted random number generator.


Constructor Index

 o Sim_uniform_obj(String, double, double, int)
The constructor.

Method Index

 o sample()
Generate a new random number.

Constructors

 o Sim_uniform_obj
 public Sim_uniform_obj(String name,
                        double min,
                        double max,
                        int seed)
The constructor.

Parameters:
name - The name to be associated with this instance, (currently ignaored)
min - The minimum value this instance should generate
max - The maximum value this instance should generate
seed - The initial seed for the generator, two instances with the same seed will generate the same sequence of numbers
Returns:
A new instance of the class

Methods

 o sample
 public double sample()
Generate a new random number.

Returns:
The next random number in the sequence

All Packages  Class Hierarchy  This Package  Previous  Next  Index