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.
-
PRNG()
- Creates a psudeo random number generator from a default seed
-
PRNG(byte[])
- Creates a psudeo random number generator from a seed
-
clock()
- moves the internal state on one cycle.
-
toByteArray()
- Creates a psudeo random number generator from a seed
PRNG
public PRNG()
- Creates a psudeo random number generator from a default seed
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.
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
clock
public synchronized void clock()
- moves the internal state on one cycle.
All Packages Class Hierarchy This Package Previous Next Index