public final class RandomNumberExtensions
extends java.lang.Object
| Constructor and Description |
|---|
RandomNumberExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigDecimal |
getRandomBigDecimal(int afterComma,
int beforeComma)
The Method getRandomBigDecimal(int,int) gets an random BigDecimal.
|
static java.lang.String |
getRandomFloatString(int afterComma,
int beforeComma)
Gets the random float string.
|
static java.lang.String |
getRandomNumericString()
Generates a random numeric string.
|
static java.lang.String |
getRandomNumericString(int length)
The Method getRandomNumericString(int) produces a random Number to the specified length.
|
static java.math.BigDecimal |
randomBigDecimal()
Generates a random
BigDecimal |
static java.math.BigInteger |
randomBigInteger()
Generates a random
BigInteger |
public static java.math.BigDecimal getRandomBigDecimal(int afterComma,
int beforeComma)
afterComma - How many decimal places after the comma.beforeComma - How many decimal places before the comma.public static java.lang.String getRandomFloatString(int afterComma,
int beforeComma)
afterComma - How many decimal places after the comma.beforeComma - How many decimal places before the comma.public static java.lang.String getRandomNumericString()
public static java.lang.String getRandomNumericString(int length)
length - The length from the random number.public static java.math.BigInteger randomBigInteger()
BigIntegerBigIntegerpublic static java.math.BigDecimal randomBigDecimal()
BigDecimalBigDecimal