public class RandomHelpers extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
debugLevel
Controls amount of diagnostic listings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RandomHelpers()
Since all of the methods are static, the constructor
should never be used.
|
| Modifier and Type | Method and Description |
|---|---|
static int[] |
createRandomOrder(int value)
Create an array with the integers from 0 to
value-1 in a random order.
|
int |
getDebugLevel()
Getter for debugLevel
|
static void |
main(String[] args)
Test driver
|
void |
setDebugLevel(int value)
Setter for debugLevel
|
protected static int debugLevel
Larger values result in more diagnostic information being printed.
setDebugLevel(int),
getDebugLevel()protected RandomHelpers()
public void setDebugLevel(int value)
value - Number to be used for debugLevelsetDebugLevel(int),
debugLevelpublic int getDebugLevel()
debugLevelpublic static int[] createRandomOrder(int value)
value - Size of array to be producedCopyright © 2017. All rights reserved.