org.freehep.postscript
Class PSRandom

java.lang.Object
  extended by java.util.Random
      extended by org.freehep.postscript.PSRandom
All Implemented Interfaces:
Serializable

public class PSRandom
extends Random

Random class with integer seed

Version:
$Id: PSRandom.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann
See Also:
Serialized Form

Constructor Summary
PSRandom()
           
PSRandom(int seed)
           
 
Method Summary
 int getSeed()
           
protected  int next(int bits)
           
 void setSeed(int seed)
           
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSRandom

public PSRandom()

PSRandom

public PSRandom(int seed)
Method Detail

setSeed

public void setSeed(int seed)

next

protected int next(int bits)
Overrides:
next in class Random

getSeed

public int getSeed()


Copyright © 2000-2006 FreeHEP. All Rights Reserved.