All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class eduni.simjava.Sim_normal_obj

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

public class Sim_normal_obj
extends Object
A normally distrubuted random number generator


Constructor Index

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

Method Index

 o sample()
Generate a new random number.

Constructors

 o Sim_normal_obj
 public Sim_normal_obj(String name,
                       double mean,
                       double var,
                       int seed)
The constructor.

Parameters:
name - The name to be associated with this instance, (currently ignaored)
mean - The mean value about which numbers should be generated
var - The varience numbers should have about the mean
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