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

Class edu.cornell.lassp.houle.RngPack.RandomShuffle

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

public class RandomShuffle
extends RandomElement
RandomShuffle shuffles the output of another random number generator to destroy sequential correlations. To create a new RandomShuffle, pass it another RandomElement as follows:
RandomShuffle markov=new RandomShuffle(new RandomJava(),32)
This example creates a new RandomShuffle that shuffles the output of RandomJava (which uses the Math.random() generator built into Java) using a 32 number shuffle deck.

Source code is available.

Version:
0.9a
Author:
Paul Houle (E-mail: ph18@cornell.edu)

Constructor Index

 o RandomShuffle(RandomElement, int)

Method Index

 o raw()

Constructors

 o RandomShuffle
  public RandomShuffle(RandomElement chaney,
                       int ds)
Parameters:
chaney - a RandomElement to shuffle
ds - the size of the shuffle deck

Methods

 o raw
  public double raw()
Overrides:
raw in class RandomElement
See Also:
raw

All Packages  Class Hierarchy  This Package  Previous  Next  Index