com.brownsoft.ag
Class PRNG
java.lang.Object
|
+--com.brownsoft.ag.PRNG
- public class PRNG
- extends java.lang.Object
Esta clase provee servicios para acceder a números pseudoaleatórios (booleanos,
enteros, floats, valores de 0 a 1, etc)
- Version:
- 1.0
- Author:
- Gustavo Brown
Constructor Summary |
PRNG()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRNG
public PRNG()
setPRNG
public static void setPRNG(java.util.Random randomNumberGenerator)
- Setea el PRNG
nextInt
public static int nextInt()
nextInt
public static int nextInt(int maxValue)
nextLong
public static long nextLong()
nextLong
public static long nextLong(long maxValue)
nextBoolean
public static boolean nextBoolean()
nextProbability
public static double nextProbability()