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()
           
 
Method Summary
static boolean nextBoolean()
           
static int nextInt()
           
static int nextInt(int maxValue)
           
static long nextLong()
           
static long nextLong(long maxValue)
           
static double nextProbability()
           
static void setPRNG(java.util.Random randomNumberGenerator)
          Setea el PRNG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRNG

public PRNG()
Method Detail

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()