org.omegahat.Simulation.RandomGenerators
Class CollingsPRNGConstants

java.lang.Object
  |
  +--org.omegahat.Simulation.RandomGenerators.CollingsPRNGConstants

public class CollingsPRNGConstants
extends java.lang.Object

Contains all of the magic constants necessary to implement Bruce Collings' Pseudorandom Number Generator.


Field Summary
static int Modulus
          Prime Modulus Constant = 2^32-1
static int[] pool
          Pool of (empirically) good multiplicative constants
static int SIZE
          Number of good multiplier constants in the pool
 
Constructor Summary
CollingsPRNGConstants()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Modulus

public static int Modulus
Prime Modulus Constant = 2^32-1

SIZE

public static int SIZE
Number of good multiplier constants in the pool

pool

public static int[] pool
Pool of (empirically) good multiplicative constants
Constructor Detail

CollingsPRNGConstants

public CollingsPRNGConstants()