yayakm / RegexStringGenerator

A Java library designed to generate random String that matches specified regular expressions. This tool is invaluable for developers and testers who require dynamically generated data that adheres to specific patterns, such as creating unique IDs, keys under constraints.
Apache License 2.0
4 stars 1 forks source link

Shouldn't the length of the string be randomly chosen between the minimum and maximum number of characters? #23

Open kycasdzxc opened 1 month ago

kycasdzxc commented 1 month ago

Currently, with the method generator.generateString(10, 20), it receives the minimum and maximum number of characters. However, it seems that the generated string always ends up being of the maximum length.

Shouldn't the length of the string be randomly chosen between the minimum and maximum number of characters? If you agree with this, I will register it as an issue.

image

Originally posted by @kycasdzxc in https://github.com/yayakm/RegexStringGenerator/discussions/22