Search code examples
jmeterperformance-testing

How in JMeter can you write a function that includes or can be used to generate random using time function with milliseconds


I need to create a random number using time function in JMeter that creates milliseconds too.

How in JMeter can you write a function that includes or can be used to generate random using time function with milliseconds?


Solution

  • Try the below:-

    ${__longSum(${__time()},${__Random(1,50)},MYVAR)}
    

    Hope it help.