package edu.cornell.lassp.houle.RngPack;
import java.util.*;
//
// RngPack 1.1a by Paul Houle
// http://www.honeylocust.com/~houle/RngPack/
//
/**
* RandomJava is a class wrapper for the <CODE>Math.random()</CODE>
* generator that comes with Java. I know nothing about the
* quality of <CODE>Math.random()</CODE>, but I will warn the
* reader that system-supplied
* RNGs have a bad reputation; <TT>RandomJava</TT> is <B>NOT</B>
* reccomended for general use, it has only been included as a
* straightforward example of how to
* build a <CODE>RandomElement</CODE> wrapper for an existing RNG.
* The <TT>RANMAR</TT>, <TT>RANECU</TT> and <TT>RANLUX</TT>
* generators included in this package all appear to be faster than
* Math.random(); all three are well-studied, portable and
* proven in use.
*
* <P>
* <A HREF="/RngPack/src/edu/cornell/lassp/houle/RngPack/RandomJava.java">
* Source code </A> is available.
*
* @author <A HREF="http://www.honeylocust.com/~houle/RngPack/"> Paul Houle </A> (E-mail: <A HREF="mailto:paul@honeylocust.com">paul@honeylocust.com</A>)
* @version 1.1a
* @see Ranmar
* @see Ranlux
* @see Ranecu
*/
public class RandomJava extends RandomElement {
/**
* Wrapper for <CODE>Math.random().</CODE>
@see RandomElement#raw
*/
public double raw() {
return Math.random();
};
};