|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.util.Random
|
+--org.mmbase.util.RandomPlus
Better random function (see Knuth)
| 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 |
public RandomPlus()
public RandomPlus(long seed)
public RandomPlus(long seed,
int size)
| Method Detail |
public void setSeed(long seed)
setSeed in class java.util.Randompublic int nextInt()
nextInt in class java.util.Randompublic long nextLong()
nextLong in class java.util.Randompublic float nextFloat()
nextFloat in class java.util.Randompublic double nextDouble()
nextDouble in class java.util.Random
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||