|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ranides.assira.math.Randomizer
public final class Randomizer
| Field Summary | |
|---|---|
static String |
ALPHA
|
static String |
ALPHA_LOWER
|
static String |
ALPHA_UPPER
|
static String |
ALPHANUM
|
static String |
DIGITS
|
| Method Summary | ||
|---|---|---|
static boolean |
bool()
|
|
static char |
character()
Zwraca dowolny losowy znak alfanumeryczny |
|
static char |
character(String chars)
Zwraca losowy znak z podanego zbioru. |
|
static Color |
color(Color min,
Color max)
Losuje kolor pośredni między dwoma podanymi. |
|
static Color |
color(float min,
float max)
Losuje kolor o maksymalnym nasyceniu (Saturation), dowolnej barwie (Hue) i jasności z podanego zakresu. |
|
static
|
list(Class<T> type,
int size)
|
|
static long |
number()
Losuje liczbę z zakresu [0;Long.MAX_VALUE) |
|
static byte |
number(byte max)
Losuje liczbę z zakresu [0;max) |
|
static byte |
number(byte min,
byte max)
Losuje liczbę z zakresu [min;max] |
|
static double |
number(double max)
|
|
static double |
number(double min,
double max)
|
|
static float |
number(float max)
|
|
static float |
number(float min,
float max)
Losuje liczbę z zakresu [min;max] |
|
static int |
number(int max)
Losuje liczbę z zakresu [0;max) |
|
static int |
number(int min,
int max)
Losuje liczbę z zakresu [min;max] |
|
static long |
number(long max)
Losuje liczbę z zakresu [0;max) |
|
static long |
number(long min,
long max)
Losuje liczbę z zakresu [min;max] |
|
static short |
number(short max)
Losuje liczbę z zakresu [0;max) |
|
static short |
number(short min,
short max)
Losuje liczbę z zakresu [min;max] |
|
static
|
object(Class<T> type)
|
|
static String |
text(int size)
Generuje losowy ciąg znaków, zawierający losowe znaki alfanumeryczne oraz spacje, o długości size. |
|
static String |
text(int size,
String chars)
Generuje losowy ciąg znaków, zawierający podane znaki, o długości size. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIGITS
public static final String ALPHA_LOWER
public static final String ALPHA_UPPER
public static final String ALPHA
public static final String ALPHANUM
| Method Detail |
|---|
public static long number()
public static long number(long max)
max -
public static byte number(byte max)
max -
public static long number(long min,
long max)
min - max -
public static int number(int max)
max -
public static int number(int min,
int max)
min - max -
public static short number(short max)
max -
public static short number(short min,
short max)
min - max -
public static byte number(byte min,
byte max)
min - max -
public static float number(float min,
float max)
min - max -
public static float number(float max)
public static double number(double min,
double max)
public static double number(double max)
public static boolean bool()
public static String text(int size,
String chars)
size.
size - chars -
public static String text(int size)
size.
size - chars -
public static Color color(float min,
float max)
min - max -
public static Color color(Color min,
Color max)
min - max -
public static char character()
public static char character(String chars)
chars -
public static <T> T object(Class<T> type)
public static <T> List<T> list(Class<T> type,
int size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||