Class edu.cornell.lassp.houle.RngPack.RandomJava
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.houle.RngPack.RandomJava

java.lang.Object
   |
   +----edu.cornell.lassp.houle.RngPack.RandomElement
           |
           +----edu.cornell.lassp.houle.RngPack.RandomJava

public class RandomJava
extends RandomElement
RandomJava is a class wrapper for the Math.random() generator that comes with Java. I know nothing about the quality of Math.random(), but I will warn the reader that system-supplied RNGs have a bad reputation; RandomJava is NOT reccomended for general use, it has only been included as a straightforward example of how to build a RandomElement wrapper for an existing RNG. The RANMAR, RANECU and RANLUX generators included in this package all appear to be faster than Math.random(); all three are well-studied, portable and proven in use.

Source code is available.

Version:
1.0
Author:
Paul Houle (E-mail: houle@msc.cornell.edu)
See Also:
Ranmar, Ranlux, Ranecu

Constructor Index

 o RandomJava()

Method Index

 o raw()
Wrapper for Math.random().

Constructors

 o RandomJava
  public RandomJava()

Methods

 o raw
  public double raw()
Wrapper for Math.random().
Overrides:
raw in class RandomElement
See Also:
raw

All Packages  Class Hierarchy  This Package  Previous  Next  Index