public class Randomize
extends java.lang.Object
Constructor and Description |
---|
Randomize() |
Modifier and Type | Method and Description |
---|---|
static double |
Rand()
Rand computes a psuedo-random float value between 0 and 1, excluding 1
|
static double |
RandClosed()
RandClosed computes a psuedo-random float value between 0 and 1 inclusive
|
static double |
Randdouble(double low,
double high)
Randdouble gives an double value between low and high, excluding high
|
static double |
RanddoubleClosed(double low,
double high)
RanddoubleClosed gives an double value between low and high inclusive
|
static double |
RanddoubleOpen(double low,
double high)
RanddoubleOpen gives an double value between low and high, excluding low and high
|
static double |
RandGaussian()
RandGaussian generates a standardized gaussian random number
|
static int |
Randint(int low,
int high)
Randint gives an integer value between low and high, excluding high
|
static int |
RandintClosed(int low,
int high)
RandintClosed gives an integer value between low and high inclusive
|
static int |
RandintOpen(int low,
int high)
RandintOpen gives an integer value between low and high, excluding 0 and 1
|
static double |
RandOpen()
RandOpen computes a psuedo-random float value between 0 and 1, excluding 0 and 1
|
static void |
setSeed(long semilla) |
public static void setSeed(long semilla)
public static double Rand()
public static double RandOpen()
public static double RandClosed()
public static double RandGaussian()
public static int Randint(int low, int high)
low
- Lower bound (included)high
- Upper bound (NOT included)public static int RandintOpen(int low, int high)
low
- Lower bound (NOT included)high
- Upper bound (NOT included)public static int RandintClosed(int low, int high)
low
- Lower bound (included)high
- Upper bound (included)public static double Randdouble(double low, double high)
low
- Lower bound (included)high
- Upper bound (NOT included)public static double RanddoubleOpen(double low, double high)
low
- Lower bound (NOT included)high
- Upper bound (NOT included)public static double RanddoubleClosed(double low, double high)
low
- Lower bound (included)high
- Upper bound (included)