java.lang.Object
io.github.astrapi69.random.number.RandomNumberExtensions
Utility class for producing random numbers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getRandomNumberString
(int afterComma, int beforeComma) Gets the random number stringstatic String
Generates a random numeric string.static String
getRandomNumericString
(int length) The Method getRandomNumericString(int) produces a random Number to the specified length.
-
Method Details
-
getRandomNumberString
Gets the random number string- Parameters:
afterComma
- How many decimal places after the comma.beforeComma
- How many decimal places before the comma.- Returns:
- the random float string
-
getRandomNumericString
Generates a random numeric string.- Returns:
- the generated random numeric string.
-
getRandomNumericString
The Method getRandomNumericString(int) produces a random Number to the specified length.- Parameters:
length
- The length from the random number.- Returns:
- The random number as String.
-