Class RandomString

java.lang.Object
net.messagevortex.transport.RandomString

public class RandomString extends Object
  • Method Details

    • nextString

      public static String nextString(int length)

      Returns a random string with the symbol set [0-9a-z].

      Parameters:
      length - the length in characters the string is requested
      Returns:
      the requested random string
    • nextString

      public static String nextString(int length, String symbolString)

      Returns a random string.

      Parameters:
      length - the length in characters the string is requested
      symbolString - the allowed symbols for the string
      Returns:
      the requested random string