Download User's Guide
Transcript
The JavaSim User’s Manuals
StreamSelect indicates the offset in the random number sequence to begin sampling, and
MGSeed and LCGSeed can be used to modify the seed values used by the RandomStream
class.
4.7 Draw
The Draw class is the exception to the inheritance rule, instead using RandomStream
through delegation (for historical reasons). This returns true with the probability prob, and
false otherwise.
public
{
public
public
public
class Draw
Draw (double p);
Draw (double p, int StreamSelect);
Draw (double p, int StreamSelect, long MGSeed, long LCGSeed);
public boolean getBoolean () throws IOException;
};
StreamSelect indicates the offset in the random number sequence to begin sampling, and
MGSeed and LCGSeed can be used to modify the seed values used by the RandomStream
class.
4.8 Example