Class RandomSeedTable

java.lang.Object
cern.jet.random.engine.RandomSeedTable

public class RandomSeedTable extends Object
(Seemingly gigantic) table of good seeds for pseudo-random number generators.

Implementation:

This is a port of SeedTable.h used in CLHEP 1.4.0 (C++). CLHEP's implementation, in turn, is part of GEANT 4, a C++ simulation toolkit for High Energy Physics. Geant4, in turn, took the table from the original FORTRAN77 implementation of the HEP CERN Library routine RECUSQ. Each sequence has a period of 10**9 numbers.
Version:
1.0, 09/24/99
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The number of columns of the matrix (currently COLUMNS = 2).
    private static final int[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Makes this class non instantiable, but still let's others inherit from it.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getSeedAtRowColumn(int row, int column)
    Returns a deterministic seed from a (seemingly gigantic) matrix of predefined seeds.
    private static int
    Not yet commented.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • COLUMNS

      public static final int COLUMNS
      The number of columns of the matrix (currently COLUMNS = 2).
      See Also:
    • seeds

      private static final int[] seeds
  • Constructor Details

    • RandomSeedTable

      protected RandomSeedTable()
      Makes this class non instantiable, but still let's others inherit from it.
  • Method Details

    • getSeedAtRowColumn

      public static int getSeedAtRowColumn(int row, int column)
      Returns a deterministic seed from a (seemingly gigantic) matrix of predefined seeds.
      Parameters:
      row - should (but need not) be in [0,Integer.MAX_VALUE].
      column - shoould (but need not) be in [0,SeedTable.COLUMNS-1].
      Returns:
      the seed at the indicated matrix position.
    • rows

      private static int rows()
      Not yet commented.
      Returns:
      int