Re: Extracting Last 4 digits from Random number

2011-05-13 Thread Deepak Shetty
Also when you want to get the generated number you will use ${var1}${var2}. if you want to regenerate the number then use the functions below (say you have this inside a loop) On Fri, May 13, 2011 at 3:18 PM, Deepak Shetty wrote: > Hi > ${__Random(100,999,var1)}${__Random(100

Re: Extracting Last 4 digits from Random number

2011-05-13 Thread Deepak Shetty
Hi ${__Random(100,999,var1)}${__Random(100,999,var2)} the first time you want to use it (no need for UDV). This saves the digits into variables named var1 and var2. ${__javaScript("${var2}".substring("${var2}".length-4))} whenever you want the last 4 digits regards

Extracting Last 4 digits from Random number

2011-05-13 Thread Natasha Alexander
Hi everyone, I am very new to JMeter. Would someone be able to help me step by step with the following: 1. I need to generate a random number that may be a minimum of 14 digits and maximum of 30 digits long. [NOTE: Initially, I added a User Defined Variable under the Test Plan level with val