Class RandomString


  • public class RandomString
    extends Object
    A provider of randomized String values.
    • Constructor Detail

      • RandomString

        public RandomString​(int length)
        Creates a random String provider where each value is of the given length.
        Parameters:
        length - The length of the random String.
    • Method Detail

      • make

        public static String make​(int length)
        Creates a random String of the given length.
        Parameters:
        length - The length of the random String.
        Returns:
        A random String.
      • hashOf

        public static String hashOf​(int value)
        Represents an integer value as a string hash. This string is not technically random but generates a fixed character sequence based on the hash provided.
        Parameters:
        value - The value to represent as a string.
        Returns:
        A string representing the supplied value as a string.
      • nextString

        public String nextString()
        Creates a new random String.
        Returns:
        A random String of the given length for this instance.