Forum Discussion

Sriraj's avatar
Sriraj
Contributor
8 years ago
Solved

Can i generate a random number without using a data source and have it passed in the rest request?

I need to generate random numbers which needs to be sent for a field call "ID" and there can be multiple occurrences of this field and thus i want to generate a random number for these tags where eve...
  • Sriraj's avatar
    8 years ago

    While i different options , i found a way to do this and is as below.

     

    ${=org.apache.commons.lang.RandomStringUtils.randomNumeric(5)}

     

    Number 5 represents the length for the number.