public abstract class Random extends Object
| Constructor and Description |
|---|
Random() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean()
Return a random boolean value.
|
static double |
getDouble()
Return a random double value.
|
static float |
getFloat()
Return a random float value.
|
static int |
getInt()
Return a random integer value.
|
static long |
getLong()
Return a random long value.
|
static Number |
getNegativeNumber()
Return a random negative number.
|
static Number |
getNumber()
Return a random number value.
|
static Object |
getObject()
Return a random object value.
|
static Number |
getPositiveNumber()
Return a random positive long value.
|
static int |
getScaleCount() |
static String |
getSimpleString()
Return a simple string with no digits or spaces.
|
static String |
getString()
Return a string, possibly with digits.
|
static String |
getStringNoDigits()
Return a get string, with no digits.
|
static void |
microSleep()
Pause execution for a random number of milliseconds between 1 and 50.
|
static void |
sleep()
Pause execution for a random number of milliseconds between 1 and 1000 (1
second).
|
static void |
tinySleep()
Pause execution for a random number of milliseconds between 100 and 200.
|
public static boolean getBoolean()
public static double getDouble()
public static float getFloat()
public static int getInt()
public static long getLong()
public static Number getNegativeNumber()
public static Number getNumber()
public static Object getObject()
public static Number getPositiveNumber()
public static void microSleep()
public static void sleep()
public static void tinySleep()
public static int getScaleCount()
public static String getString()
public static String getSimpleString()
public static String getStringNoDigits()