org.mmbase.util
Class RandomPlus
java.lang.Object
java.util.Random
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomPlus
public RandomPlus()
RandomPlus
public RandomPlus(long seed)
RandomPlus
public RandomPlus(long seed,
int size)
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