org.mmbase.util
Class RandomPlus

java.lang.Object
  extended by java.util.Random
      extended by org.mmbase.util.RandomPlus
All Implemented Interfaces:
Serializable

public class RandomPlus
extends Random

Better random function (see Knuth)

Version:
$Id: RandomPlus.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Rico Jansen
See Also:
Serialized Form
Application:
SCAN

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

Constructor Detail

RandomPlus

public RandomPlus()

RandomPlus

public RandomPlus(long seed)

RandomPlus

public RandomPlus(long seed,
                  int size)
Method Detail

setSeed

public void setSeed(long seed)
Overrides:
setSeed in class Random

nextInt

public int nextInt()
Overrides:
nextInt in class Random

nextLong

public long nextLong()
Overrides:
nextLong in class Random

nextFloat

public float nextFloat()
Overrides:
nextFloat in class Random

nextDouble

public double nextDouble()
Overrides:
nextDouble in class Random


MMBase 2.0-SNAPSHOT - null