public enum RandomAlgorithm extends java.lang.Enum<RandomAlgorithm>
RandomAlgorithm holds the algorithm for calculate random values| Enum Constant and Description |
|---|
MATH_ABS
The algorithm with
Math#abs method |
MATH_RANDOM
The algorithm with
Math#random method |
RANDOM
The algorithm with
Random class |
SECURE_RANDOM
The algorithm with
SecureRandom class |
| Modifier and Type | Method and Description |
|---|---|
static RandomAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RandomAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RandomAlgorithm MATH_ABS
Math#abs methodpublic static final RandomAlgorithm MATH_RANDOM
Math#random methodpublic static final RandomAlgorithm RANDOM
Random classpublic static final RandomAlgorithm SECURE_RANDOM
SecureRandom classpublic static RandomAlgorithm[] values()
for (RandomAlgorithm c : RandomAlgorithm.values()) System.out.println(c);
public static RandomAlgorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null