Class java.math.PRNG
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.math.PRNG

java.math.PRNG

public final class PRNG
this is a psudeo random number generator that will create psudeo random 20 byte arrays.

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Constructor Index

 o PRNG()
Creates a psudeo random number generator from a default seed
 o PRNG(byte[])
Creates a psudeo random number generator from a seed

Method Index

 o clock()
moves the internal state on one cycle.
 o toByteArray()
Creates a psudeo random number generator from a seed

Constructors

 o PRNG
  public PRNG()
Creates a psudeo random number generator from a default seed
 o PRNG
  public PRNG(byte b[])
Creates a psudeo random number generator from a seed
Parameters:
b - the seed for this generator
Throws: MathError
if the seed is less that 20 bytes.

Methods

 o toByteArray
  public synchronized byte[] toByteArray()
Creates a psudeo random number generator from a seed
Returns:
a twenty byte array representing the current state of the generator
 o clock
  public synchronized void clock()
moves the internal state on one cycle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index