Class RandomNumberExtensions

java.lang.Object
io.github.astrapi69.random.number.RandomNumberExtensions

public final class RandomNumberExtensions extends Object
Utility class for producing random numbers.
  • Method Details

    • getRandomNumberString

      public static String getRandomNumberString(int afterComma, int beforeComma)
      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

      public static String getRandomNumericString()
      Generates a random numeric string.
      Returns:
      the generated random numeric string.
    • getRandomNumericString

      public static String getRandomNumericString(int length)
      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.