public final class RandomNumberExtensions extends Object
| Constructor and Description |
|---|
RandomNumberExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
getRandomBigDecimal(int afterComma,
int beforeComma)
The Method getRandomBigDecimal(int,int) gets an random BigDecimal.
|
static String |
getRandomFloatString(int afterComma,
int beforeComma)
Gets the random float string.
|
static String |
getRandomNumericString()
Generates a random numeric string.
|
static String |
getRandomNumericString(int length)
The Method getRandomNumericString(int) produces a random Number to the specified length.
|
static BigDecimal |
randomBigDecimal()
Generates a random
BigDecimal |
static BigInteger |
randomBigInteger()
Generates a random
BigInteger |
public static BigDecimal getRandomBigDecimal(int afterComma, int beforeComma)
afterComma - How many decimal places after the comma.beforeComma - How many decimal places before the comma.public static String getRandomFloatString(int afterComma, int beforeComma)
afterComma - How many decimal places after the comma.beforeComma - How many decimal places before the comma.public static String getRandomNumericString()
public static String getRandomNumericString(int length)
length - The length from the random number.public static BigInteger randomBigInteger()
BigIntegerBigIntegerpublic static BigDecimal randomBigDecimal()
BigDecimalBigDecimalCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.