Forum Discussion
SiKing
12 years agoCommunity Expert
JimLin wrote: Where is the info about what versions are used, on the Codehaus or SmartBear website?
Look in $SOAPUI_HOME/lib.
JimLin wrote: Possibly because I've not had enough coffee yet, but your answer doesn't make it any clearer. I would be grateful if you could you kindly provide an example, thanks.
RandomStringUtils picks characters from a character array. In other words, there are no "numbers", there are only characters that might look like numbers.
The random(int, int, int, boolean, boolean) method is awkward to use and not going to do what you want. You will need to use something like:
def rnd = new Random()
def randomNumber = rnd.nextInt(193) + 1
def randomString = randomNumber.toString().padLeft(3, "0")