Package ru.objectsfill.utils
Class RandomGenerator
java.lang.Object
ru.objectsfill.utils.RandomGenerator
Utility class for generating random values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateGenerates a random Date object representing a random date.static StringrandomAlphabet(Fill fill) Generates a random alphabetic string of the specified length.static StringGenerates a random numeric string of the specified length.
-
Method Details
-
randomNum
Generates a random numeric string of the specified length.- Parameters:
fill- the Fill object containing the value length- Returns:
- a random numeric string
-
randomAlphabet
Generates a random alphabetic string of the specified length.- Parameters:
fill- the Fill object containing the value length- Returns:
- a random alphabetic string
-
generateRandomDate
Generates a random Date object representing a random date.- Returns:
- a random Date object
-